Skip to content

Commit

Permalink
Additional fix to dmm matcher (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Dec 23, 2020
1 parent 1b04372 commit af38794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Javinizer/Private/Scraper.Dmm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Get-DmmContentId {

process {
try {
$contentId = ($Url | Select-String -Pattern 'cid=(.*)(\/)?').Matches.Groups[1].Value
$contentId = (($Url | Select-String -Pattern 'cid=(.*)(\/)?').Matches.Groups[1].Value -split '/')[0]
} catch {
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/Javinizer/Public/Get-DmmUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function Get-DmmUrl {

$resultId = Get-DmmId -Url $result
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Debug -Message "[$originalId] [$($MyInvocation.MyCommand.Name)] Result [$count] is [$resultId]"
if ($resultId -eq "$Id") {
if ($resultId -eq $originalId) {
$directUrl = $result
break
}
Expand Down

0 comments on commit af38794

Please sign in to comment.