AMC windows question

Support for Windows users
Post Reply
lordmage
Posts: 3
Joined: Today, 14:24

AMC windows question

Post by lordmage »

is it possible to use amc to output to two seperate folders using a plex based naming.

i use different programs to pass to Qbit which downloads to the a temp folder which amc usually process to the output but id like to separate out anything usually process via animeformat my plan is to allow amc to place regular movies directly to a different output if i can rather than manually move as i do now.

qbit downloads to F:\torrents
qbit temp is a sub folder which i suspect i need to move currently F:\torrents\temp

current amc process folder F:/Filebot-qbit
Proposed idea move regular TV series using tvdb {order.airdate.plex} and Movies using themoviedb to F:\Media\{plex} but if anime id like it to remain in the filebot-qbit folder using animedb {order.airdate.plex}

im sure my code below is missing something if possible or broke after i fixed the old (copy) to (duplicate) which fixed the speed issue it was painfully slow.

Code: Select all

 cmd /c START /MIN cmd /c filebot -script fn:amc --output "F:/Filebot-qbit" --action duplicate --conflict skip -non-strict "F:\torrents" --log-file "F:/Filebot-qbit/reports/amc.log" --def excludeList="F:/Filebot-qbit/Reports/amc-exclude.txt" --def skipExtract=y --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB  --def animeFormat=Anime"{order.airdate.plex}" --def unsorted=y "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L""
User avatar
rednoah
The Source
Posts: 24016
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC windows question

Post by rednoah »

:arrow: Please read the Automated Media Center › Change how files will be organized and renamed section.

:idea: Each format for each content type can generate absolute target file paths which will then be used. There's not much I can add to that. Let me know if you still struggle with making the amc script do your bidding.



:!: DO NOT pass your entire download folder as input for each and every filebot call. Remove the "F:\torrents" input argument. The exact path to the newly completed download is passed on by qBT via the --def "ut_dir=%F" parameter. Please read the console output / log on occasion so to verify that the amc script does what you think it does.


:!: {order.airdate.plex} has no effect if you're using AniDB which does not support anything other than Absolute Order. If you are using Plex then you cannot use AniDB since Plex does not support AniDB.


:!: --def animeFormat=Anime"{order.airdate.plex}" is bad usage. You probably mean something like --def animeFormat="Anime/{ ~plex }". See {plex} format manual for details.


:!: "ut_label=%L"" has a dangling " at the end. That could be a problem later.


:idea: You can use filebot.launcher.exe (i.e. the GUI application executable) if you want to run filebot without a console window.




tl;dr

Shell: Select all

filebot.launcher -script fn:amc --output "F:/Filebot-qbit" --action duplicate --conflict skip -non-strict --log-file "F:/Filebot-qbit/reports/amc.log" --def excludeList="F:/Filebot-qbit/Reports/amc-exclude.txt" skipExtract=y unsorted=y movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB movieFormat="F:/Media/{plex}" seriesFormat="F:/Media/{plex}" animeFormat="F:/Filebot-qbit/Anime/{~plex}" --def "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
:idea: Please read the FAQ and How to Request Help.
lordmage
Posts: 3
Joined: Today, 14:24

Re: AMC windows question

Post by lordmage »

glad to see i was close for a short time i was using it in a bat file so i can work out each action but once it got longer i came here.
got lost in the format area of the coding...
the dangling " was not there in the original coding thank god.
now i did read something that naming and anime is largely treated as tv series so im guess the passing filename should have a category of anime in qbit to fix any mismatching
User avatar
rednoah
The Source
Posts: 24016
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC windows question

Post by rednoah »

lordmage wrote: Today, 17:00 now i did read something that naming and anime is largely treated as tv series so im guess the passing filename should have a category of anime in qbit to fix any mismatching
:idea: If you have file names like I Can't Understand What My Husband Is Saying - S02E01 then that's going the be processed as a TV Series episode just like any other. Your format can still move different episodes into different folders depending on the genre, keywords, origin country, etc by using Conditional Structures (if-then-else) to generate different file paths (e.g. some with a TV Shows folder, some with a Anime folder) as desired.

:idea: However, if you have file names like Danna ga Nani wo Itteiru ka Wakaranai Ken 2 Sure-me - 01 then the amc script will use the special case Anime / AniDB mode because files like that require a lot more finesse / different processing options. The --def ut_label option can be used to force behaviour one way or another, meaning you can set labels as desired in qBT and that will the be passed along via --def "ut_label=%L".
:idea: Please read the FAQ and How to Request Help.
lordmage
Posts: 3
Joined: Today, 14:24

Re: AMC windows question

Post by lordmage »

cheers works as intended... not that i didn't think it would.
thank for the debug and info helped much faster
Post Reply