Leave folders alone, or not?

Any questions? Need some help?
Post Reply
NoSubstitute
Posts: 3
Joined: 18 Mar 2015, 06:12

Leave folders alone, or not?

Post by NoSubstitute »

Hi!

From what I've read so far I don't think FileBot is "folder-aware" in the sense that I want.
Since I've read that it can't just move folders with it's content, then I don't want it to do anything with those files either.

So I'd like to be able to tell FileBot to not traverse TV series input folders recursively. There is a recursive setting, but it (amc script) seems to do that automatically.
In short, I want FB to only rename/move files in the input folder and leave files inside folders alone.

Is it a simple matter of downloading my own copy of the amc script and disabling the recursive setting?

The best option would of course be if someone a lot smarter than me were to figure out how to script FB to do both. :-)
Until that day, would it be possible to use the "move movie folder with content" process to get TV series seasons already in folders moved without touching any names?
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Leave folders alone, or not?

Post by rednoah »

Have you tried passing in the files instead of the parent folder?

You can pass in folders or files. If you pass a folder all files inside will be processed. If you pass a single or multiple files only those files will be processed. You may use wildcard *.mp4 or the like to have your console expand wild cards and pass all files accordingly.
:idea: Please read the FAQ and How to Request Help.
NoSubstitute
Posts: 3
Joined: 18 Mar 2015, 06:12

Re: Leave folders alone, or not?

Post by NoSubstitute »

Ah, so if I set input dir to /home/media/tv/*.mkv that would grab only those files and not do recursive search in the folders?

Hmm, no, that didn't work. Guessing I did that wrong?

$ filebot -script fn:amc --output "/mnt/NAS540/tv" --log-file amc.log --action copy --action test "/mnt/ARCHIVE9/tv/*.mkv" -non-strict --def excludeList=amc.txt --def skipExtract=y --def subtitles=en --def "seriesFormat=/mnt/NAS540/tv/{n.space(.)}/{S+s.pad(2)}/{fn}"
Locking /home/user/.filebot/logs/amc.log
Parameter: excludeList = amc.txt
Parameter: skipExtract = y
Parameter: subtitles = en
Parameter: seriesFormat = /mnt/NAS540/tv/{n.space(.)}/{S+s.pad(2)}/{fn}
Argument: /mnt/ARCHIVE9/tv/*.mkv
File not found: /mnt/ARCHIVE9/tv/*.mkv
Failure (°_°)

The path definitely contains files. If I do
ls -l /mnt/ARCHIVE9/tv/*.mkv | wc -l
I get 1260 hits. Also they are not all in amc.txt.
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Leave folders alone, or not?

Post by rednoah »

Please read:
viewtopic.php?f=4&t=1899

Experiment 1:

Code: Select all

filebot -script fn:sysinfo "/mnt/ARCHIVE9/tv/*.mkv"

Code: Select all

filebot -script fn:sysinfo /mnt/ARCHIVE9/tv/*.mkv
Experiment 2:

Code: Select all

ls -l "/mnt/ARCHIVE9/tv/*.mkv"

Code: Select all

ls -l /mnt/ARCHIVE9/tv/*.mkv
Now you know how * shell expansion works. :ugeek:
:idea: Please read the FAQ and How to Request Help.
NoSubstitute
Posts: 3
Joined: 18 Mar 2015, 06:12

Re: Leave folders alone, or not?

Post by NoSubstitute »

Haha, of course!
Worked tons better, but still gave a little error.

filebot -script fn:amc --output "/mnt/NAS540/tv" --log-file amc.log --action copy --action test /mnt/ARCHIVE9/tv/*mkv -non-strict --def excludeList=amc.txt --def skipExtract=y --def subtitles=en --def "seriesFormat=/mnt/NAS540/tv/{n.space(.)}/{S+s.pad(2)}/{fn}"

Gave me a bunch of these:

ScriptException: SyntaxError: unexpected token: .
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Leave folders alone, or not?

Post by rednoah »

YES

Code: Select all

{n.space('.')}
NO

Code: Select all

{n.space(.)}
:idea: Please read the FAQ and How to Request Help.
Post Reply