Page 1 of 1

Help with AMC script rename base on folder name

Posted: 01 Oct 2016, 20:46
by saitoh183
Some time i get files that have random characters for a name instead of the actual show and eps name/number. Filebot fails to renam those with the current seriesformat i use.

Here is the script:

Code: Select all

filebot -script  fn:amc --def seriesFormat="D:/videos/TV/{n}/{'Season '+s}/{n} - {sxe} - {t}" --action move -non-strict $FolderPath --log-file P:/scripts/Filebot.log --def clean=y -no-xattr --log Fine --conflict auto --def ut_label=Series --filter "age < 7"
here is the output

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Outcast]
Fetching episode data for [Outcast]
Fetching episode data for [The Outcast]
Fetching episode data for [Outcasts]
Apply Filter: {age < 7}
No matching episode: m64VJERHZ4HtJWKokaUX1bhpjnkv7wegjU0txkGJm92aH.mkv
No matching episode: Wecqb6FXxFcYaqwrndqXxbGfgE2BJUe3NR.mkv
No matching episode: RaaTb6quTew.mkv
No matching episode: vyW4kEckHrjp860Q6UpBVWeqUVm.mkv
No matching episode: 160714_01.mkv
No matching episode: kwO4YGhWhmNWAMhGZJAzZv.mkv
No matching episode: KSQE8AJiAju619GZpzsiXfZdMw.mkv
Failed to match files to episode data
Now all those are in folders that are named in a valid format...for example

m64VJERHZ4HtJWKokaUX1bhpjnkv7wegjU0txkGJm92aH.mkv is in a folder called Outcast.S01E03.All.Alone.Now.720p.WEB-DL.DD5.1.H.264-R2D2

So how can i modify my current seriesformat to rename based on the folder name if episode detection fails on the file name? If it is not possible to add this to my current seriesformat, i dont mind calling filebot again with another series format just for this type of situation.


Thanks

Re: Help with AMC script rename base on folder name

Posted: 02 Oct 2016, 02:18
by saitoh183
Nvm...the problem was the --filter. Its good for catching things like fear the walking dead so it doesnt detect as The walking dead but it will fail on old stuff

Re: Help with AMC script rename base on folder name

Posted: 02 Oct 2016, 14:37
by rednoah
This is the recommended usage:

Code: Select all

--filter "age < 7 || !model.any{ it.age < 7 }" --def "ut_label=TV"
It's not perfect, but it'll work almost always, unless you have really bad luck and timing (i.e. downloading old episodes within 7 days of airdate of new episodes).

@see viewtopic.php?f=4&t=215