Amc script and folder paths

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
barbz127
Posts: 4
Joined: 14 Feb 2015, 08:14

Amc script and folder paths

Post by barbz127 »

Hi all,

I am trying for automate the processing for completed downloads using the amc script but I am having an issue which I'm hoping there is a workaround for.

The problem been the cli application will not throw an error but it will not output to the folder I specify rather it will open to the folder where the command is been run from. I do not have the full script but I know it works as if I point it to a different folder it works, just not with the output folder as per below.

The input directory is I:/downloads/complete
The output is I:/ (where a to shows and movies, etc folders sit)

Is this working the way it is because the output could contain the input and a workaround would be to make a I:/media folder?

Anyone else seen this beforehand?

Thankyou
Paul
barbz127
Posts: 4
Joined: 14 Feb 2015, 08:14

Re: Amc script and folder paths

Post by barbz127 »

For confirmation the script (from batch file) I am running is:

Code: Select all

Echo off

call filebot -script fn:amc --output "I:" --log-file "I:\DL\2.Completed\!.1.Scripts\test.log.txt" --action move --conflict auto -non-strict "I:\DL\2.Completed\!.2.ToSort" --def excludeList=I:\DL\2.Completed\!.1.Scripts\test.exclude.txt deleteAfterExtract=y clean=y subtitles=en unsorted=y 
The output of this command is (file name replaced).

Code: Select all

I:\DL\2.Completed\!.1.Scripts>Echo off
Locking I:\DL\2.Completed\!.1.Scripts\test.log.txt
Parameter: excludeList = I:\DL\2.Completed\!.1.Scripts\test.exclude.txt
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: subtitles = en
Parameter: unsorted = y
Argument: I:\DL\2.Completed\!.2.ToSort
Input: I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05\ep.xxx.S01E05.avi
Exclude: I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05\ep.xxx.S01E05.nfo
Group: [tvs:12 monkeys] => [12.Monkeys.S01E05.HDTV.XviD-iFT.avi]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05\ep.xxx.S01E05.avi
Rename episodes using [TheTVDB]
Auto-detected query: [12 Monkeys]
Fetching episode data for [12 Monkeys]
[MOVE] Rename [I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05\ep.xxx.S01E05.avi] to [I:\DL\2.Completed\!.1.Scripts\TV Shows\xxx\Season 01\xxx - S01E05.avi]
Processed 1 files
Clean clutter files and empty folders
Delete I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05\ep.xxx.S01E05.avi
Delete I:\DL\2.Completed\!.2.ToSort\ep.xxx.S01E05
Done Òâ¥(´╝áÔîÆÒâ╝ÔîÆ´╝á)ÒâÄ
You can see above that it creates the file structure in the location as the logs (where the script is run from) rather than I: (I have tested I: and I:/ neither work); on the other hand if I tell it to go to I:/media it works as expected.

Thankyou
Paul
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Amc script and folder paths

Post by rednoah »

I recommend using I:/Media then. Windows drive folders are special and odd, so something might be interfering with path resolution.
:idea: Please read the FAQ and How to Request Help.
barbz127
Posts: 4
Joined: 14 Feb 2015, 08:14

Re: Amc script and folder paths

Post by barbz127 »

Will do, just thought I would ask first.

Waiting for my synology to arrive then I can set it up properly :)

Thankyou for your work on this project.
Paul
Post Reply