Skip to content

Commit

Permalink
Update Sonarr - Get Original Language.js
Browse files Browse the repository at this point in the history
updated revision and moved parameters to end to avoid breaking existing users
  • Loading branch information
revenz authored Jan 14, 2025
1 parent d5d3b9b commit b370101
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { Sonarr } from '../../../Shared/Sonarr';
/**
* @author reven
* @uid 51cf3c4f-f4a3-45e2-a083-6629397aab90
* @revision 8
* @revision 9
* @description Lookups a file in Sonarr and gets its original language ISO-693-1 code for it
* @param {string} URL Sonarr root URL and port (e.g., http://sonarr:1234)
* @param {string} ApiKey API Key for Sonarr
* @param {string} Path The full file path to lookup in Sonarr
* @param {bool} ISO2 If ISO-639-2 should be returned, otherwise ISO-639-1 will be used
* @param {string} URL Sonarr root URL and port (e.g., http://sonarr:1234)
* @param {string} ApiKey API Key for Sonarr
* @output The language was found and stored in the variable OriginalLanguage
* @output The language was not found
*/
function Script(URI, ApiKey, Path, ISO2)
function Script(Path, ISO2, URI, ApiKey)
{
URI = URI || Variables["Sonarr.Url"] || Variables["Sonarr.URI"];
ApiKey = ApiKey || Variables["Sonarr.ApiKey"];
Expand Down

0 comments on commit b370101

Please sign in to comment.