Command line not renaming files in Anime

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Command line not renaming files in Anime

Post by vballrican »

Hello all, so my command line process was working fine a few days ago and today it won't rename the files... :(

Here's what i'm using:

filebot -script fn:amc --output "H:/Media" -non-strict "H:/New" --log-file amc.log --action copy --def artwork=y "seriesFormat=H:/Media/TV/{n} [{certification}, {genre}, {y}]/{'Season '+s}/{n} - {s00e00} - {t}" "animeFormat=H:/Media/Anime/{n} ({certification}, {genre}, {y})/{fn}" "movieFormat=H:/Media/Movies/{n} {y} ({certification} {Genre})/{n}" "musicFormat=H:/Media/Music/{n}/{fn}" excludeList=amc.txt

Why is it not renaming the file now?

Using this: {n} [{certification}, {genre}, {y}]/{'Season '+s}/{n} - {s00e00} - {t} in the GUI works fine and it renames the files and folder.

Thank in advance.
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Command line not renaming files in Anime

Post by rednoah »

If it works in the GUI then it'll also work from cmdline, assuming everything is the same.

1.
animeFormat is applied to files that are processed as Anime, i.e. processed with AniDB, which does not support {certification}.

2.
You show that {certification} works when processing files via TheTVDB, which does support {certification} data.

3.
Your animeFormat specifies {fn} as the filename, and not {n} - {s00e00} - {t}, which you presumably want.
:idea: Please read the FAQ and How to Request Help.
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Command line not renaming files in Anime

Post by vballrican »

rednoah wrote:If it works in the GUI then it'll also work from cmdline, assuming everything is the same.

1.
animeFormat is applied to files that are processed as Anime, i.e. processed with AniDB, which does not support {certification}.

2.
You show that {certification} works when processing files via TheTVDB, which does support {certification} data.

3.
Your animeFormat specifies {fn} as the filename, and not {n} - {s00e00} - {t}, which you presumably want.

Thank you! You stated earlier that theTVDB doesn't work with the amc script... is there a way to force it? I tried using --db theTVDB but that doesn't seem to work.

Also, I have a folder with the anime I want to process and some get processed as TV Shows(theTVDB, showing everything fine including rename) and some get processed as Anime(These are the ones not renaming) How can I force the script to use the TV format and not Anime?

Thanks in advanced.
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Command line not renaming files in Anime

Post by rednoah »

Since the files use absolute numbering and contain CRC32 checksums in the filename the amc script will processed them in Anime mode. You might be able to force it via --def ut_label=TV as per amc script documentation.
:idea: Please read the FAQ and How to Request Help.
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Command line not renaming files in Anime

Post by vballrican »

rednoah wrote:Since the files use absolute numbering and contain CRC32 checksums in the filename the amc script will processed them in Anime mode. You might be able to force it via --def ut_label=TV as per amc script documentation.
Ahh..thanks. I saw that but didn't know what it meant. Will change it today and see how it goes. Thank a lot.
Post Reply