Help with AMC script rename base on folder name
Posted: 01 Oct 2016, 20:46
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:
here is the output
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
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"
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
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