Skip to content

Commit

Permalink
Merge pull request #135 from seeyabye/fix/jav321-genre
Browse files Browse the repository at this point in the history
Fixed genre for jav321 resulting in null values
  • Loading branch information
jvlflame committed Oct 16, 2020
2 parents f7de215 + de731cc commit d6ed6a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Javinizer/Private/Scraper.Jav321.ps1
Expand Up @@ -118,9 +118,8 @@ function Get-Jav321Genre {
$genre = @()

try {
$genre = ($Webrequest | ForEach-Object { $_ -split '\n' } |
Select-String '<a href="\/genre\/(.*)\/(.*)">(.*)<\/a> ').Matches.Groups[0] -split '<\/a>' |
ForEach-Object { ($_ -split '>')[1] }
$genre = ($Webrequest | Select-String '<a href="\/genre\/.+?">(.+?)<\/a>' -AllMatches).Matches |
ForEach-Object { $_.Groups[1].Value }
} catch {
return
}
Expand Down

0 comments on commit d6ed6a8

Please sign in to comment.