diff --git a/README.md b/README.md index fe38dc28..6c9910ab 100644 --- a/README.md +++ b/README.md @@ -439,7 +439,7 @@ server-api-key | String value | The API key for your Emby/Jellyfin server instan set-owned | True/False | Sets sorted movies as "Owned" on JAVLibrary, requires a JAVLibrary account username | String value | Your JAVLibrary username session-cookie | String value | After logging in, view the cookies under the `www.javlibrary.com/cookies/session` directory and copy the cookie content -request-timeout-interval-sec | Interger value (0+) | Sets the timeout value in seconds on how long Javinizer will wait between setting a movie as owned on JAVLibrary. This is required due to JAVLibrary erroring when setting movies as owned too quickly +request-interval-sec | Interger value (0+) | Sets the timeout value in seconds on how long Javinizer will wait between setting a movie as owned on JAVLibrary. This is required due to JAVLibrary erroring when setting movies as owned too quickly request-timeout-sec | Integer value (0+) | Sets the timeout value in seconds on how long Javinizer will continue polling Javinizer to set the owned status (polls every 3 seconds) log-path | String value (Path) | Sets the path to your log file; If left blank, it will default to a location within your module folder check-updates | True/False | Checks for updates to the Javinizer module upon your first console session runtime diff --git a/src/Javinizer/Private/Validate-Settings.ps1 b/src/Javinizer/Private/Validate-Settings.ps1 index 3d4673c5..ee89acfa 100644 --- a/src/Javinizer/Private/Validate-Settings.ps1 +++ b/src/Javinizer/Private/Validate-Settings.ps1 @@ -30,7 +30,6 @@ function Test-Settings { 'first-last-name-order', 'convert-alias-to-originalname' 'normalize-genres', - 'set-owned', 'check-updates', 'verbose-shell-output', 'debug-shell-output' @@ -57,14 +56,13 @@ function Test-Settings { 'regex-id-match', 'regex-pt-match', 'request-timeout-sec', - 'request-timeout-interval-sec' + 'request-interval-sec' ) $javlibrarySettings = @( - 'set-owned', 'username', 'session-cookie', - 'requeste-timeout-sec' + 'request-timeout-sec' ) $validTags = @( diff --git a/src/Javinizer/Public/Javinizer.ps1 b/src/Javinizer/Public/Javinizer.ps1 index 7808de13..21f27121 100644 --- a/src/Javinizer/Public/Javinizer.ps1 +++ b/src/Javinizer/Public/Javinizer.ps1 @@ -598,7 +598,7 @@ function Javinizer { $ajaxId = $javlibObject.AjaxId $url = $javlibObject.Url Set-JavlibraryOwned -AjaxId $ajaxId -JavlibraryUrl $url -Settings $settings - Start-Sleep -Seconds $Settings.JavLibrary.'request-timeout-interval-sec' + Start-Sleep -Seconds $Settings.JavLibrary.'request-interval-sec' } else { Write-Warning "[$(Get-TimeStamp)][$($MyInvocation.MyCommand.Name)] Movie [$movie] not matched on JAVLibrary, skipping..." } @@ -687,7 +687,7 @@ function Javinizer { return } - if ($Javlibrary -or $Settings.JavLibrary.'set-owned' -eq 'True') { + if ($Javlibrary) { if ($null -eq $session) { New-CloudflareSession -ScriptRoot $ScriptRoot } diff --git a/src/Javinizer/settings.ini b/src/Javinizer/settings.ini index 08c94179..0c8a2ed4 100644 --- a/src/Javinizer/settings.ini +++ b/src/Javinizer/settings.ini @@ -109,10 +109,9 @@ server-url=192.168.0.1:8096 server-api-key= [JavLibrary] -set-owned=False username= session-cookie= -request-timeout-interval-sec=15 +request-interval-sec=15 request-timeout-sec=90 [Other]