Skip to content

Commit 0d21d19

Browse files
committed
Fix R18.dev cover URL to use large poster and bump to v2.6.4
1 parent ec8db4e commit 0d21d19

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/Javinizer/Javinizer.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Version number of this module.
1515

16-
ModuleVersion = '2.6.3'
16+
ModuleVersion = '2.6.4'
1717

1818
# Supported PSEditions
1919
# CompatiblePSEditions = @('Core')

src/Javinizer/Private/Scraper.Dmm.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function Get-DmmMaker {
152152

153153
process {
154154
try {
155-
$maker = ($WebRequest.Content | Select-String -Pattern '<a.*?href="[^"]*\?maker=(\d+)".*?>([^<]+)</a>').Matches.Groups[2].Value
155+
$maker = ($WebRequest.Content | Select-String -Pattern '<a[^>]*href="[^"]*(?:\?maker=|/article=maker/id=)(\d+)[^"]*"[^>]*>([\s\S]*?)</a>').Matches.Groups[2].Value
156156
} catch {
157157
return
158158
}
@@ -168,7 +168,7 @@ function Get-DmmLabel {
168168

169169
process {
170170
try {
171-
$label = ($WebRequest.Content | Select-String -Pattern '<a.*?href="[^"]*\?label=(\d+)".*?>([^<]+)</a>').Matches.Groups[2].Value
171+
$label = ($WebRequest.Content | Select-String -Pattern '<a[^>]*href="[^"]*(?:\?label=|/article=label/id=)(\d+)[^"]*"[^>]*>([\s\S]*?)</a>').Matches.Groups[2].Value
172172
} catch {
173173
return
174174
}

src/Javinizer/Private/Scraper.R18dev.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ function Get-R18DevCoverUrl {
288288

289289
process {
290290
$coverUrl = $Webrequest.jacket_full_url
291+
# Swap ps.jpg (poster small) with pl.jpg (poster large)
292+
$coverUrl = $coverUrl -replace 'ps\.jpg', 'pl.jpg'
291293

292294
Write-Output $coverUrl
293295
}

0 commit comments

Comments
 (0)