Skip to content

Commit

Permalink
Check for duplicate https on javlibrary screenshot url
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Dec 12, 2021
1 parent 7da4d0d commit 26fc17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Javinizer/Private/Scraper.Javlibrary.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function Get-JavlibraryScreenshotUrl {
$screenshotHtml = $screenshotHtml -split '<img src="'
foreach ($screenshot in $screenshotHtml) {
if ($screenshot -ne '') {
$screenshot = 'https:' + ($screenshot -split '"')[0]
$screenshot = if ($screenshot -match 'https?:') { ($screenshot -split '"')[0] } else { 'https:' + ($screenshot -split '"')[0] }
$screenshot = $screenshot -replace '-', 'jp-'
if ($screenshot -match 'pics.dmm') {
$screenshotUrl += $screenshot
Expand Down

0 comments on commit 26fc17b

Please sign in to comment.