Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/jvlflame/JAV-Organizer into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 26, 2020
2 parents d90438f + b791e31 commit 252c55a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Javinizer/Private/Scraper.Dmm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function Get-DmmCoverUrl {

process {
try {
$coverUrl = ($Webrequest.Content | Select-String -Pattern '(https:\/\/pics\.dmm\.co\.jp\/(mono\/movie\/adult|digital\/video)\/(.*)/(.*)\.jpg)').Matches.Groups[1].Value -replace 'ps.jpg', 'pl.jpg'
$coverUrl = ($Webrequest.Content | Select-String -Pattern '(https:\/\/pics\.dmm\.co\.jp\/(mono\/movie\/adult|digital\/(?:video|amateur))\/(.*)\/(.*)\.jpg)').Matches.Groups[1].Value -replace 'ps.jpg', 'pl.jpg'
} catch {
return
}
Expand Down
9 changes: 5 additions & 4 deletions src/Javinizer/Public/Get-JVData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function Get-JVData {
[Boolean]$DmmScrapeActress,

[Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Id')]
[Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Url')]
[Alias('location.uncensorcsv')]
[System.IO.FileInfo]$UncensorCsvPath = (Join-Path -Path ((Get-Item $PSScriptRoot).Parent) -ChildPath 'jvUncensor.csv'),

Expand All @@ -67,7 +68,7 @@ function Get-JVData {
[PSObject]$Settings,

[Parameter(ParameterSetName = 'Url')]
[PSObject]$Url
[Array]$Url
)

process {
Expand Down Expand Up @@ -221,11 +222,11 @@ function Get-JVData {
}

if ($DmmJa) {
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Debug -Message "[$Id] [$($MyInvocation.MyCommand.Name)] [Search - Dmm] [Url - $DmmUrl]"
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Debug -Message "[$Id] [$($MyInvocation.MyCommand.Name)] [Search - DmmJa] [Url - $DmmJaUrl]"
Start-ThreadJob -Name "jvdata-Dmm" -ThrottleLimit $throttleLimit -ScriptBlock {
Import-Module $using:jvModulePath
if ($using:DmmUrl) {
$using:DmmUrl | Get-DmmData -ScrapeActress:$using:DmmScrapeActress
if ($using:DmmJaUrl) {
$using:DmmJaUrl | Get-DmmData -ScrapeActress:$using:DmmScrapeActress
} elseif ($using:jvDmmUrl) {
$jvDmmUrl = $using:jvDmmUrl
$jvDmmUrl.Ja | Get-DmmData -ScrapeActress:$using:DmmScrapeActress
Expand Down

0 comments on commit 252c55a

Please sign in to comment.