[AMC] Sort files into folders based on current file path
Posted: 02 Nov 2015, 14:43
Hi there.
Wasnt sure if I should post this here or Help & Support.
I run from time to time amc and it works great.
However there is some small detail I would like to know.
I use following command:
date '+%D %X'
filebot -script fn:amc --lang de --output "/volume1/Freigabe/Series & Movies" --log-file amc.log --action move -non-strict "/volume1/Freigabe/DL" --def excludeList=amc.txt "seriesFormat=Serien/{n}/{'Staffel '+s}/{n}.{s00e00} - {t}/{folder.name}/{fn}" "movieFormat=Movies/{n} ({y})/{folder.name}/{fn}" xbmc=openelec
As you can see all my movies/tv-shows are downloaded into a folder DL. Half my stuff gets extractet into separate folder for example MyTVShow.DVDRip.AC3.DL in this case the above command runs perfectly fine (and translate it to MyTVShow\Season 01\MyEpisode1\MyTVShowDVDRip.AC3.DL\s01 - e01.avi).
But sometimes its not into a separate folder and foldern.name will translate to DL and this behaviour I would like to avoid.
My question is now can I somehow omit the folder.name variable under some circumstances?
Or is it possible depending on the folder name variable to run two different commands (e.g one with folder.name and one without).
Pseudo-Code:
if folder.name is DL
do command without folder.name
else
do command like above
Hope somebody understands my description and can help.
Thanks in advance!
Wasnt sure if I should post this here or Help & Support.
I run from time to time amc and it works great.
However there is some small detail I would like to know.
I use following command:
date '+%D %X'
filebot -script fn:amc --lang de --output "/volume1/Freigabe/Series & Movies" --log-file amc.log --action move -non-strict "/volume1/Freigabe/DL" --def excludeList=amc.txt "seriesFormat=Serien/{n}/{'Staffel '+s}/{n}.{s00e00} - {t}/{folder.name}/{fn}" "movieFormat=Movies/{n} ({y})/{folder.name}/{fn}" xbmc=openelec
As you can see all my movies/tv-shows are downloaded into a folder DL. Half my stuff gets extractet into separate folder for example MyTVShow.DVDRip.AC3.DL in this case the above command runs perfectly fine (and translate it to MyTVShow\Season 01\MyEpisode1\MyTVShowDVDRip.AC3.DL\s01 - e01.avi).
But sometimes its not into a separate folder and foldern.name will translate to DL and this behaviour I would like to avoid.
My question is now can I somehow omit the folder.name variable under some circumstances?
Or is it possible depending on the folder name variable to run two different commands (e.g one with folder.name and one without).
Pseudo-Code:
if folder.name is DL
do command without folder.name
else
do command like above
Hope somebody understands my description and can help.
Thanks in advance!