diff --git a/src/Javinizer/Private/Get-Jav321DataObject.ps1 b/src/Javinizer/Private/Get-Jav321DataObject.ps1 index b3f30771..ce493d6e 100644 --- a/src/Javinizer/Private/Get-Jav321DataObject.ps1 +++ b/src/Javinizer/Private/Get-Jav321DataObject.ps1 @@ -33,7 +33,6 @@ function Get-Jav321DataObject { Year = Get-Jav321ReleaseYear -WebRequest $webRequest Runtime = Get-Jav321Runtime -WebRequest $webRequest Maker = Get-Jav321Maker -WebRequest $webRequest - Rating = Get-Jav321Rating -WebRequest $webRequest Actress = (Get-Jav321Actress -WebRequest $webRequest).Name ActressThumbUrl = (Get-Jav321Actress -WebRequest $webRequest).ThumbUrl Genre = Get-Jav321Genre -WebRequest $webRequest @@ -161,16 +160,6 @@ function Get-Jav321Maker { } } -function Get-Jav321Rating { - param ( - [object]$WebRequest - ) - - process { - # Write-Output $rating - } -} - function Get-Jav321Genre { param ( [object]$WebRequest @@ -183,8 +172,8 @@ function Get-Jav321Genre { process { try { $genre = ($WebRequest | ForEach-Object { $_ -split '\n' } | - Select-String '(.*)<\/a><\/span>').Matches | - ForEach-Object { $_.Groups[3].Value } + Select-String '(.*)<\/a> ').Matches.Groups[0] -split '<\/a>' | + ForEach-Object { ($_ -split '>')[1] } } catch { return } @@ -235,7 +224,7 @@ function Get-Jav321CoverUrl { process { try { $coverUrl = (($WebRequest | ForEach-Object { $_ -split '\n' } | - Select-String -Pattern '').Matches.Groups[1].Value) + '.jpg' } catch { return } @@ -256,11 +245,18 @@ function Get-Jav321ScreenshotUrl { process { try { $screenshotUrl = (($WebRequest | ForEach-Object { $_ -split '\n' } | - Select-String -Pattern '").Matches | ForEach-Object { $_.Groups[1].Value } } catch { - return + try { + $screenshotUrl = (($WebRequest | ForEach-Object { $_ -split '\n' } | + Select-String -Pattern '<\/a><\/p>').Matches | + ForEach-Object { $_.Groups[1].Value } + } catch { + return + } } Write-Output $screenshotUrl