script [fn:amc] Bad Parameter help plz

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
1AnimeFinder
Posts: 7
Joined: 12 Sep 2023, 23:27

script [fn:amc] Bad Parameter help plz

Post by 1AnimeFinder »

hi there im get a Bad Parameter here my code
ps it did work like 1-2 yaer ago that y im asking for help ps ty....it work 100% on the GUI but im trying to use the cmd ...im on w11

Code: Select all

Bad movieFormat value: "Movies/{anime ? "Anime Movies" : genres.contains('Animation') ?  "Animation Movies" : "Movies"}/{ny} [tmdb-id-{id}]/{ny} {audio.Language ? {audio.Language} : ""} [tmdb-id-{id}] - {source ? "["+{source}+"] " :  " _ " }[{vc}]{hdr ? "["+{hdr}+"] " :  "" }[{vf}] {fn.contains("CR") ? ("[CR]_[WEBDL]") : ""} {fn.contains("DVK") ? ("[DVK]") : ""}  {fn.contains("Funimation") ? ("[Funimation]_[WEBDL]") : ""} {fn.contains("Funicom") ? ("[Funicom]_[WEBDL]") : ""}  {fn.contains("DarkDream") ? ("[DarkDream]") : ""} {fn.contains("Funi-DL") ? ("[Funi-DL]_[WEBDL]") : ""} {fn.contains("Pn8") ? ("[Pn8]") : ""}  {fn.contains("DRAGONVSKIRA") ? ("[DRAGONVSKIRA]") : ""} {fn.contains("CronoFlash") ? ("[CronoFlash]") : ""} {fn.contains("DragonVsKira") ? ("[DragonVsKira]") : "  "

Code: Select all

Bad seriesFormat value: "{anime ? "Anime/Anime" : genres.contains('Animation') ?  "TV Shows/TV Shows Animation" : "TV Shows/TV Shows"}/{ny}/{episode.special ? 'Specials' : 'Season 0'+s}/{ny} - {episode.special ? 'S00E'+special.pad(2) : s00e00} {absolute ? " - [A"+{absolute}+"] " :  " - " } {t} {audio.Language ? {audio.Language} : {null}} {vf ? "["+{vf}+"]_" : "_"}{source ? "["+{source}+"] " :  " _ " }{vc ? "["+{vc}+"]" :  null} {hdr.contains('HDR') ?  "[HDR]" : ""} {Subt ? { "[Subt"+subt+"]" } : ""} {fn.contains("CR") ? ("[CR]_[WEBDL]") : ""} {fn.contains("DVK") ? ("[DVK]") : ""}  {fn.contains("Funimation") ? ("[Funimation]_[WEBDL]") : ""} {fn.contains("Funicom") ? ("[Funicom]_[WEBDL]") : ""}  {fn.contains("DarkDream") ? ("[DarkDream]") : ""} {fn.contains("Funi-DL") ? ("[Funi-DL]_[WEBDL]") : ""} {fn.contains("Pn8") ? ("[Pn8]") : ""}  {fn.contains("DRAGONVSKIRA") ? ("[DRAGONVSKIRA]") : ""} {fn.contains("CronoFlash") ? ("[CronoFlash]") : ""} {fn.contains("DragonVsKira") ? ("[DragonVsKira]") : ""}  "
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: script [fn:amc] Bad Parameter help plz

Post by rednoah »

:?: What is your command-line? What does the complete console output say?


:idea: A format value generally does not start or end with "..." and if it does then you likely have an issue on the command-line. You are notably not correctly quoting the format value, and instead passing the quotes literally as part of the argument value. As a result, you are generating target file paths that start and end with " characters, which are then stripped from the target file path because the " character cannot be used in file paths.


:idea: tl;dr you are effectively doing something this:

Shell: Select all

--def seriesFormat="\"{plex}\""
:idea: Please read the FAQ and How to Request Help.
1AnimeFinder
Posts: 7
Joined: 12 Sep 2023, 23:27

Re: script [fn:amc] Bad Parameter help plz

Post by 1AnimeFinder »

ps i did fix it was my .bat masing it up .... now i need to fix the bat so it stop doing that

it should look like this

Code: Select all

Parameter: movieFormat = {anime ? "Anime Movies" : genres.contains('Animation') ?  "Animation Movies" : "Movies"}/{ny} [tmdb-id-{id}]/{ny} {audio.Language ? {audio.Language} : ""} [tmdb-id-{id}] - {source ? "["+{source}+"] " :  " _ " }[{vc}]{hdr ? "["+{hdr}+"] " :  "" }[{vf}] {fn.contains("CR") ? ("[CR]_[WEBDL]") : ""} {fn.contains("DVK") ? ("[DVK]") : ""}  {fn.contains("Funimation") ? ("[Funimation]_[WEBDL]") : ""} {fn.contains("Funicom") ? ("[Funicom]_[WEBDL]") : ""}  {fn.contains("DarkDream") ? ("[DarkDream]") : ""} {fn.contains("Funi-DL") ? ("[Funi-DL]_[WEBDL]") : ""} {fn.contains("Pn8") ? ("[Pn8]") : ""}  {fn.contains("DRAGONVSKIRA") ? ("[DRAGONVSKIRA]") : ""} {fn.contains("CronoFlash") ? ("[CronoFlash]") : ""} {fn.contains("DragonVsKira") ? ("[DragonVsKira]") : ""} [crc32 {crc32}]

Code: Select all

Parameter: seriesFormat = {anime ? "Anime/Anime" : genres.contains('Animation') ?  "TV Shows/TV Shows Animation" : "TV Shows/TV Shows"}/{ny}/{episode.special ? 'Specials' : 'Season 0'+s}/{ny} - {episode.special ? 'S00E'+special.pad(2) : s00e00} {absolute ? " - [A"+{absolute}+"] " :  " - " } {t} {audio.Language ? {audio.Language} : {null}} {vf ? "["+{vf}+"]_" : "_"}{source ? "["+{source}+"] " :  " _ " }{vc ? "["+{vc}+"]" :  null} {hdr.contains('HDR') ?  "[HDR]" : ""} {Subt ? { "[Subt"+subt+"]" } : ""} {fn.contains("CR") ? ("[CR]_[WEBDL]") : ""} {fn.contains("DVK") ? ("[DVK]") : ""}  {fn.contains("Funimation") ? ("[Funimation]_[WEBDL]") : ""} {fn.contains("Funicom") ? ("[Funicom]_[WEBDL]") : ""}  {fn.contains("DarkDream") ? ("[DarkDream]") : ""} {fn.contains("Funi-DL") ? ("[Funi-DL]_[WEBDL]") : ""} {fn.contains("Pn8") ? ("[Pn8]") : ""}  {fn.contains("DRAGONVSKIRA") ? ("[DRAGONVSKIRA]") : ""} {fn.contains("CronoFlash") ? ("[CronoFlash]") : ""} {fn.contains("DragonVsKira") ? ("[DragonVsKira]") : ""}
i try {plex} but it keep puting anime in tv show + i what to keep all fn.contains this is the cool thing about filebot u have so must options lol
Post Reply