Skip to content

Commit

Permalink
Fix find outresults
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Dec 2, 2019
1 parent 786ac9e commit 252a092
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Javinizer/Private/Get-FindDataObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ function Get-FindDataObject {
} else {
if ($urlLocation.Result -eq 'r18') {
$r18Data = Get-R18DataObject -Url $Find -ErrorAction 'SilentlyContinue'
Write-Output $r18Data | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $r18Data | Select-Object Url, Id, ContentId, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
}

if ($urlLocation.Result -eq 'dmm') {
$dmmData = Get-DmmDataObject -Url $Find -ErrorAction 'SilentlyContinue'
Write-Output $dmmData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $dmmData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, RatingCount, Actress, Genre, CoverUrl, ScreenshotUrl
}

if ($urlLocation.Result -eq 'javlibrary') {
$javlibraryData = Get-JavlibraryDataObject -Url $Find -ErrorAction 'SilentlyContinue'
Write-Output $javlibraryData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $javlibraryData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, CoverUrl, ScreenshotUrl
}
}
} elseif ($getItem.Mode -eq $itemMode) {
Expand All @@ -67,17 +67,17 @@ function Get-FindDataObject {
} else {
if ($r18) {
$r18Data = Get-R18DataObject -Name $fileDetails.Id -ErrorAction 'SilentlyContinue'
Write-Output $r18Data | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $r18Data | Select-Object Url, Id, ContentId, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
}

if ($dmm) {
$dmmData = Get-DmmDataObject -Name $fileDetails.Id -ErrorAction 'SilentlyContinue'
Write-Output $dmmData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $dmmData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, RatingCount, Actress, Genre, CoverUrl, ScreenshotUrl
}

if ($javlibrary) {
$javlibraryData = Get-JavlibraryDataObject -Name $fileDetails.Id -ErrorAction 'SilentlyContinue'
Write-Output $javlibraryData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $javlibraryData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, CoverUrl, ScreenshotUrl
}
}
} else {
Expand All @@ -87,17 +87,17 @@ function Get-FindDataObject {
} else {
if ($r18) {
$r18Data = Get-R18DataObject -Name $Find -ErrorAction 'SilentlyContinue'
Write-Output $r18Data | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $r18Data | Select-Object Url, Id, ContentId, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
}

if ($dmm) {
$dmmData = Get-DmmDataObject -Name $Find -ErrorAction 'SilentlyContinue'
Write-Output $dmmData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $dmmData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, RatingCount, Actress, Genre, CoverUrl, ScreenshotUrl
}

if ($javlibrary) {
$javlibraryData = Get-JavlibraryDataObject -Name $Find -ErrorAction 'SilentlyContinue'
Write-Output $javlibraryData | Select-Object Id, Title, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl
Write-Output $javlibraryData | Select-Object Url, Id, Title, Description, Date, Year, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, CoverUrl, ScreenshotUrl
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Javinizer/Public/Javinizer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Javinizer {
switch ($PsCmdlet.ParameterSetName) {
'Info' {
$dataObject = Get-FindDataObject -Find $Find -Settings $settings -Aggregated:$Aggregated -Dmm:$Dmm -R18:$R18 -Javlibrary:$Javlibrary
Write-Output $dataObject | Select-Object Search, Id, Title, AlternateTitle, Description, ReleaseDate, ReleaseYear, Runtime, Director, Maker, Label, Series, Rating, Actress, Genre, ActressThumbUrl, CoverUrl, ScreenshotUrl, TrailerUrl, DisplayName, FolderName, FileName
Write-Output $dataObject
}

'Path' {
Expand Down

0 comments on commit 252a092

Please sign in to comment.