Skip to content

Commit

Permalink
Scraper updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 7, 2020
1 parent 51c2848 commit d4e3127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Javinizer/Private/Scraper.R18.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ function Get-R18Actress {
}
} else {
try {
$japaneseActressName = ((Invoke-WebRequest -Uri ($zhActressUrl -replace 'lg=en', 'lg=zh')).Content | Select-String -Pattern '<h1 class="txt01">(.*)<\/h1><\/div>').Matches.Groups[1].Value
$jaActressName = ((Invoke-WebRequest -Uri ($zhActressUrl -replace 'lg=en', 'lg=zh')).Content | Select-String -Pattern '<h1 class="txt01">(.*)<\/h1><\/div>').Matches.Groups[1].Value
} catch {
return
}
$movieActressObject += [PSCustomObject]@{
LastName = ($actressName -split ' ')[1]
FirstName = ($actressName -split ' ')[0]
JapaneseName = $japaneseActressName
JapaneseName = $jaActressName
ThumbUrl = $thumbUrl
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/Javinizer/Public/Get-JavlibraryUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Get-JavlibraryUrl {
[String]$Id,

[Parameter(Position = 1)]
[String]$BaseUrl = 'http://www.javlibrary.com'
[String]$BaseUrl = 'https://www.javlibrary.com'
)

process {
Expand Down Expand Up @@ -86,7 +86,6 @@ function Get-JavlibraryUrl {
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Warning -Message "[$Id] not matched on JavLibrary"
return
} else {
$javlibraryUrl = $javlibraryUrl -replace 'http://', 'https://'
$javlibraryUrlJa = $javlibraryUrl -replace '/en/', '/ja/'
$javlibraryUrlZh = $javlibraryUrl -replace '/en/', '/cn/'

Expand Down

0 comments on commit d4e3127

Please sign in to comment.