From 6e3433e2c2839be11c652d47cf2b0978d71e49c7 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 5 Sep 2023 11:43:23 +0000 Subject: [PATCH] v1.8 - Bug Fix for new Not Original Or English CF --- radarr/AutoConfig.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radarr/AutoConfig.service b/radarr/AutoConfig.service index 5b93bf6..31093b3 100644 --- a/radarr/AutoConfig.service +++ b/radarr/AutoConfig.service @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.7" +scriptVersion="1.8" scriptName="AutoConfig" #### Import Settings @@ -99,8 +99,8 @@ log "Complete" # Add Language: Not Original or English Custom Format log "Adding Language: Not Original or English Custom format" -updateArr=$(curl -s "$arrUrl/api/v3/customformat?" -X POST -H "Content-Type: application/json" -H "X-Api-Key: ${arrApiKey}" --data-raw '{"includeCustomFormatWhenRenaming":false,"trash_id":"guide-only","trash_score":-10000,"trash_scores":{"default":-10000},"trash_description":"Language: Prefer X but i\'ll take Y","name":"Language: Not Original or English","specifications":[{"implementation":"LanguageSpecification","implementationName":"Language","infoLink":"https://wiki.servarr.com/radarr/settings#custom-formats-2","negate":true,"required":true,"fields":[{"order":0,"name":"value","label":"Language","value":-2,"type":"select","advanced":false,"selectOptions":[{"value":-1,"name":"Any","order":0,"dividerAfter":false},{"value":-2,"name":"Original","order":0,"dividerAfter":false},{"value":0,"name":"Unknown","order":0,"dividerAfter":true},{"value":31,"name":"Arabic","order":0,"dividerAfter":false},{"value":34,"name":"Bengali","order":0,"dividerAfter":false},{"value":41,"name":"Bosnian","order":0,"dividerAfter":false},{"value":29,"name":"Bulgarian","order":0,"dividerAfter":false},{"value":38,"name":"Catalan","order":0,"dividerAfter":false},{"value":10,"name":"Chinese","order":0,"dividerAfter":false},{"value":39,"name":"Croatian","order":0,"dividerAfter":false},{"value":25,"name":"Czech","order":0,"dividerAfter":false},{"value":6,"name":"Danish","order":0,"dividerAfter":false},{"value":7,"name":"Dutch","order":0,"dividerAfter":false},{"value":1,"name":"English","order":0,"dividerAfter":false},{"value":42,"name":"Estonian","order":0,"dividerAfter":false},{"value":16,"name":"Finnish","order":0,"dividerAfter":false},{"value":19,"name":"Flemish","order":0,"dividerAfter":false},{"value":2,"name":"French","order":0,"dividerAfter":false},{"value":4,"name":"German","order":0,"dividerAfter":false},{"value":20,"name":"Greek","order":0,"dividerAfter":false},{"value":23,"name":"Hebrew","order":0,"dividerAfter":false},{"value":26,"name":"Hindi","order":0,"dividerAfter":false},{"value":22,"name":"Hungarian","order":0,"dividerAfter":false},{"value":9,"name":"Icelandic","order":0,"dividerAfter":false},{"value":44,"name":"Indonesian","order":0,"dividerAfter":false},{"value":5,"name":"Italian","order":0,"dividerAfter":false},{"value":8,"name":"Japanese","order":0,"dividerAfter":false},{"value":21,"name":"Korean","order":0,"dividerAfter":false},{"value":36,"name":"Latvian","order":0,"dividerAfter":false},{"value":24,"name":"Lithuanian","order":0,"dividerAfter":false},{"value":15,"name":"Norwegian","order":0,"dividerAfter":false},{"value":33,"name":"Persian","order":0,"dividerAfter":false},{"value":12,"name":"Polish","order":0,"dividerAfter":false},{"value":18,"name":"Portuguese","order":0,"dividerAfter":false},{"value":30,"name":"Portuguese (Brazil)","order":0,"dividerAfter":false},{"value":27,"name":"Romanian","order":0,"dividerAfter":false},{"value":11,"name":"Russian","order":0,"dividerAfter":false},{"value":40,"name":"Serbian","order":0,"dividerAfter":false},{"value":35,"name":"Slovak","order":0,"dividerAfter":false},{"value":3,"name":"Spanish","order":0,"dividerAfter":false},{"value":37,"name":"Spanish (Latino)","order":0,"dividerAfter":false},{"value":14,"name":"Swedish","order":0,"dividerAfter":false},{"value":43,"name":"Tamil","order":0,"dividerAfter":false},{"value":45,"name":"Telugu","order":0,"dividerAfter":false},{"value":28,"name":"Thai","order":0,"dividerAfter":false},{"value":17,"name":"Turkish","order":0,"dividerAfter":false},{"value":32,"name":"Ukrainian","order":0,"dividerAfter":false},{"value":13,"name":"Vietnamese","order":0,"dividerAfter":false}],"privacy":"normal","isFloat":false}],"name":"Not Original","id":2},{"implementation":"LanguageSpecification","implementationName":"Language","infoLink":"https://wiki.servarr.com/radarr/settings#custom-formats-2","negate":true,"required":true,"fields":[{"order":0,"name":"value","label":"Language","value":1,"type":"select","advanced":false,"selectOptions":[{"value":-1,"name":"Any","order":0,"dividerAfter":false},{"value":-2,"name":"Original","order":0,"dividerAfter":false},{"value":0,"name":"Unknown","order":0,"dividerAfter":true},{"value":31,"name":"Arabic","order":0,"dividerAfter":false},{"value":34,"name":"Bengali","order":0,"dividerAfter":false},{"value":41,"name":"Bosnian","order":0,"dividerAfter":false},{"value":29,"name":"Bulgarian","order":0,"dividerAfter":false},{"value":38,"name":"Catalan","order":0,"dividerAfter":false},{"value":10,"name":"Chinese","order":0,"dividerAfter":false},{"value":39,"name":"Croatian","order":0,"dividerAfter":false},{"value":25,"name":"Czech","order":0,"dividerAfter":false},{"value":6,"name":"Danish","order":0,"dividerAfter":false},{"value":7,"name":"Dutch","order":0,"dividerAfter":false},{"value":1,"name":"English","order":0,"dividerAfter":false},{"value":42,"name":"Estonian","order":0,"dividerAfter":false},{"value":16,"name":"Finnish","order":0,"dividerAfter":false},{"value":19,"name":"Flemish","order":0,"dividerAfter":false},{"value":2,"name":"French","order":0,"dividerAfter":false},{"value":4,"name":"German","order":0,"dividerAfter":false},{"value":20,"name":"Greek","order":0,"dividerAfter":false},{"value":23,"name":"Hebrew","order":0,"dividerAfter":false},{"value":26,"name":"Hindi","order":0,"dividerAfter":false},{"value":22,"name":"Hungarian","order":0,"dividerAfter":false},{"value":9,"name":"Icelandic","order":0,"dividerAfter":false},{"value":44,"name":"Indonesian","order":0,"dividerAfter":false},{"value":5,"name":"Italian","order":0,"dividerAfter":false},{"value":8,"name":"Japanese","order":0,"dividerAfter":false},{"value":21,"name":"Korean","order":0,"dividerAfter":false},{"value":36,"name":"Latvian","order":0,"dividerAfter":false},{"value":24,"name":"Lithuanian","order":0,"dividerAfter":false},{"value":15,"name":"Norwegian","order":0,"dividerAfter":false},{"value":33,"name":"Persian","order":0,"dividerAfter":false},{"value":12,"name":"Polish","order":0,"dividerAfter":false},{"value":18,"name":"Portuguese","order":0,"dividerAfter":false},{"value":30,"name":"Portuguese (Brazil)","order":0,"dividerAfter":false},{"value":27,"name":"Romanian","order":0,"dividerAfter":false},{"value":11,"name":"Russian","order":0,"dividerAfter":false},{"value":40,"name":"Serbian","order":0,"dividerAfter":false},{"value":35,"name":"Slovak","order":0,"dividerAfter":false},{"value":3,"name":"Spanish","order":0,"dividerAfter":false},{"value":37,"name":"Spanish (Latino)","order":0,"dividerAfter":false},{"value":14,"name":"Swedish","order":0,"dividerAfter":false},{"value":43,"name":"Tamil","order":0,"dividerAfter":false},{"value":45,"name":"Telugu","order":0,"dividerAfter":false},{"value":28,"name":"Thai","order":0,"dividerAfter":false},{"value":17,"name":"Turkish","order":0,"dividerAfter":false},{"value":32,"name":"Ukrainian","order":0,"dividerAfter":false},{"value":13,"name":"Vietnamese","order":0,"dividerAfter":false}],"privacy":"normal","isFloat":false}],"name":"Not English","id":3}]}') - +updateArr=$(curl -s "$arrUrl/api/v3/customformat?" -X POST -H "Content-Type: application/json" -H "X-Api-Key: ${arrApiKey}" --data-raw $'{"includeCustomFormatWhenRenaming":false,"trash_id":"guide-only","trash_score":-10000,"trash_scores":{"default":-10000},"trash_description":"Language: Prefer X but i\'ll take Y","name":"Language: Not Original or English","specifications":[{"implementation":"LanguageSpecification","implementationName":"Language","infoLink":"https://wiki.servarr.com/radarr/settings#custom-formats-2","negate":true,"required":true,"fields":[{"order":0,"name":"value","label":"Language","value":-2,"type":"select","advanced":false,"selectOptions":[{"value":-1,"name":"Any","order":0,"dividerAfter":false},{"value":-2,"name":"Original","order":0,"dividerAfter":false},{"value":0,"name":"Unknown","order":0,"dividerAfter":true},{"value":31,"name":"Arabic","order":0,"dividerAfter":false},{"value":34,"name":"Bengali","order":0,"dividerAfter":false},{"value":41,"name":"Bosnian","order":0,"dividerAfter":false},{"value":29,"name":"Bulgarian","order":0,"dividerAfter":false},{"value":38,"name":"Catalan","order":0,"dividerAfter":false},{"value":10,"name":"Chinese","order":0,"dividerAfter":false},{"value":39,"name":"Croatian","order":0,"dividerAfter":false},{"value":25,"name":"Czech","order":0,"dividerAfter":false},{"value":6,"name":"Danish","order":0,"dividerAfter":false},{"value":7,"name":"Dutch","order":0,"dividerAfter":false},{"value":1,"name":"English","order":0,"dividerAfter":false},{"value":42,"name":"Estonian","order":0,"dividerAfter":false},{"value":16,"name":"Finnish","order":0,"dividerAfter":false},{"value":19,"name":"Flemish","order":0,"dividerAfter":false},{"value":2,"name":"French","order":0,"dividerAfter":false},{"value":4,"name":"German","order":0,"dividerAfter":false},{"value":20,"name":"Greek","order":0,"dividerAfter":false},{"value":23,"name":"Hebrew","order":0,"dividerAfter":false},{"value":26,"name":"Hindi","order":0,"dividerAfter":false},{"value":22,"name":"Hungarian","order":0,"dividerAfter":false},{"value":9,"name":"Icelandic","order":0,"dividerAfter":false},{"value":44,"name":"Indonesian","order":0,"dividerAfter":false},{"value":5,"name":"Italian","order":0,"dividerAfter":false},{"value":8,"name":"Japanese","order":0,"dividerAfter":false},{"value":21,"name":"Korean","order":0,"dividerAfter":false},{"value":36,"name":"Latvian","order":0,"dividerAfter":false},{"value":24,"name":"Lithuanian","order":0,"dividerAfter":false},{"value":15,"name":"Norwegian","order":0,"dividerAfter":false},{"value":33,"name":"Persian","order":0,"dividerAfter":false},{"value":12,"name":"Polish","order":0,"dividerAfter":false},{"value":18,"name":"Portuguese","order":0,"dividerAfter":false},{"value":30,"name":"Portuguese (Brazil)","order":0,"dividerAfter":false},{"value":27,"name":"Romanian","order":0,"dividerAfter":false},{"value":11,"name":"Russian","order":0,"dividerAfter":false},{"value":40,"name":"Serbian","order":0,"dividerAfter":false},{"value":35,"name":"Slovak","order":0,"dividerAfter":false},{"value":3,"name":"Spanish","order":0,"dividerAfter":false},{"value":37,"name":"Spanish (Latino)","order":0,"dividerAfter":false},{"value":14,"name":"Swedish","order":0,"dividerAfter":false},{"value":43,"name":"Tamil","order":0,"dividerAfter":false},{"value":45,"name":"Telugu","order":0,"dividerAfter":false},{"value":28,"name":"Thai","order":0,"dividerAfter":false},{"value":17,"name":"Turkish","order":0,"dividerAfter":false},{"value":32,"name":"Ukrainian","order":0,"dividerAfter":false},{"value":13,"name":"Vietnamese","order":0,"dividerAfter":false}],"privacy":"normal","isFloat":false}],"name":"Not Original","id":2},{"implementation":"LanguageSpecification","implementationName":"Language","infoLink":"https://wiki.servarr.com/radarr/settings#custom-formats-2","negate":true,"required":true,"fields":[{"order":0,"name":"value","label":"Language","value":1,"type":"select","advanced":false,"selectOptions":[{"value":-1,"name":"Any","order":0,"dividerAfter":false},{"value":-2,"name":"Original","order":0,"dividerAfter":false},{"value":0,"name":"Unknown","order":0,"dividerAfter":true},{"value":31,"name":"Arabic","order":0,"dividerAfter":false},{"value":34,"name":"Bengali","order":0,"dividerAfter":false},{"value":41,"name":"Bosnian","order":0,"dividerAfter":false},{"value":29,"name":"Bulgarian","order":0,"dividerAfter":false},{"value":38,"name":"Catalan","order":0,"dividerAfter":false},{"value":10,"name":"Chinese","order":0,"dividerAfter":false},{"value":39,"name":"Croatian","order":0,"dividerAfter":false},{"value":25,"name":"Czech","order":0,"dividerAfter":false},{"value":6,"name":"Danish","order":0,"dividerAfter":false},{"value":7,"name":"Dutch","order":0,"dividerAfter":false},{"value":1,"name":"English","order":0,"dividerAfter":false},{"value":42,"name":"Estonian","order":0,"dividerAfter":false},{"value":16,"name":"Finnish","order":0,"dividerAfter":false},{"value":19,"name":"Flemish","order":0,"dividerAfter":false},{"value":2,"name":"French","order":0,"dividerAfter":false},{"value":4,"name":"German","order":0,"dividerAfter":false},{"value":20,"name":"Greek","order":0,"dividerAfter":false},{"value":23,"name":"Hebrew","order":0,"dividerAfter":false},{"value":26,"name":"Hindi","order":0,"dividerAfter":false},{"value":22,"name":"Hungarian","order":0,"dividerAfter":false},{"value":9,"name":"Icelandic","order":0,"dividerAfter":false},{"value":44,"name":"Indonesian","order":0,"dividerAfter":false},{"value":5,"name":"Italian","order":0,"dividerAfter":false},{"value":8,"name":"Japanese","order":0,"dividerAfter":false},{"value":21,"name":"Korean","order":0,"dividerAfter":false},{"value":36,"name":"Latvian","order":0,"dividerAfter":false},{"value":24,"name":"Lithuanian","order":0,"dividerAfter":false},{"value":15,"name":"Norwegian","order":0,"dividerAfter":false},{"value":33,"name":"Persian","order":0,"dividerAfter":false},{"value":12,"name":"Polish","order":0,"dividerAfter":false},{"value":18,"name":"Portuguese","order":0,"dividerAfter":false},{"value":30,"name":"Portuguese (Brazil)","order":0,"dividerAfter":false},{"value":27,"name":"Romanian","order":0,"dividerAfter":false},{"value":11,"name":"Russian","order":0,"dividerAfter":false},{"value":40,"name":"Serbian","order":0,"dividerAfter":false},{"value":35,"name":"Slovak","order":0,"dividerAfter":false},{"value":3,"name":"Spanish","order":0,"dividerAfter":false},{"value":37,"name":"Spanish (Latino)","order":0,"dividerAfter":false},{"value":14,"name":"Swedish","order":0,"dividerAfter":false},{"value":43,"name":"Tamil","order":0,"dividerAfter":false},{"value":45,"name":"Telugu","order":0,"dividerAfter":false},{"value":28,"name":"Thai","order":0,"dividerAfter":false},{"value":17,"name":"Turkish","order":0,"dividerAfter":false},{"value":32,"name":"Ukrainian","order":0,"dividerAfter":false},{"value":13,"name":"Vietnamese","order":0,"dividerAfter":false}],"privacy":"normal","isFloat":false}],"name":"Not English","id":3}]}') log "Complete" + sleep infinity exit $?