Renaming isn't always correct

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
sjboyd891
Posts: 11
Joined: 25 Apr 2013, 03:27

Renaming isn't always correct

Post by sjboyd891 »

I have a file for The Americans ("the.americans.2013.112.hdtv-lol.mp4") that Filebot somehow identified as a Movie and renamed "American Mary (2013) CD1.mp4". I have a couple other TV shows it's had issues with. Is there somewhere in some file that I can put a forced name so that it will do it right? As it was running the process I saw it actually ELIMINATE the correct option.

Here is my script:

Code: Select all

REM organize files
call filebot -script fn:utorrent-postprocess "T:\RUNiMPORT" --output "M:\MEDIA" --log-file amc.log --action copy --conflict override -non-strict --def music=n subtitles=en artwork=n gmail=*****:***** mailto=*****@gmail.com
Here is the output:

Code: Select all

Argument: T:\RUNiMPORT
Read archive [the.americans.2013.112.hdtv-lol.rar] to [T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL]
Extracting files [T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol.mp4]
Read archive [the.americans.2013.113.hdtv-lol.rar] to [T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL]
Extracting files [T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol.mp4]
Input: T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol.mp4
Input: T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol.mp4
the.americans.2013.112.hdtv-lol.mp4 [series: americans 2013, movie: American Mary (2013)]
Exclude Series: americans 2013
the.americans.2013.113.hdtv-lol.mp4 [series: americans 2013, movie: American Mary (2013)]
Exclude Series: americans 2013
Group: [tvs:null, mov:American Mary (2013), anime:null] => [the.americans.2013.112.hdtv-lol.mp4, the.americans.2013.113.hdtv-lol.mp4]
Get [English] subtitles for 2 files
Looking up subtitles by filehash via OpenSubtitles
Matched [the.americans.2013.112.hdtv-lol.mp4] to [The.Americans.S01E12.HDTV.x264-LOL.HI] via filehash
Matched [the.americans.2013.113.hdtv-lol.mp4] to [The.Americans.S01E13.HDTV.x264-LOL.HI] via filehash
Fetching [The.Americans.S01E12.HDTV.x264-LOL.HI.srt]
Export [The.Americans.S01E12.HDTV.x264-LOL.HI.srt] as: SubRip / UTF-8
Writing [The.Americans.S01E12.HDTV.x264-LOL.HI.srt] to [the.americans.2013.112.hdtv-lol.eng.srt]
Fetching [The.Americans.S01E13.HDTV.x264-LOL.HI.srt]
Export [The.Americans.S01E13.HDTV.x264-LOL.HI.srt] as: SubRip / UTF-8
Writing [The.Americans.S01E13.HDTV.x264-LOL.HI.srt] to [the.americans.2013.113.hdtv-lol.eng.srt]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol.mp4]
Auto-detect movie from context: [T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol.mp4]
[COPY] Rename [T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol.mp4] to [M:\MEDIA\Movies\American Mary (2013)\American Mary (2013) CD1.mp4]
[COPY] Rename [T:\RUNiMPORT\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol\The.Americans.2013.S01E12.HDTV.x264-LOL\the.americans.2013.112.hdtv-lol.eng.srt] to [M:\MEDIA\Movies\American Mary (2013)\American Mary (2013) CD1.eng.srt]
[COPY] Rename [T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol.mp4] to [M:\MEDIA\Movies\American Mary (2013)\American Mary (2013) CD2.mp4]
[COPY] Rename [T:\RUNiMPORT\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol\The.Americans.2013.S01E13.HDTV.x264-LOL\the.americans.2013.113.hdtv-lol.eng.srt] to [M:\MEDIA\Movies\American Mary (2013)\American Mary (2013) CD2.eng.srt]
Processed 4 files
     [mail] Sending email: [FileBot] [The.Americans.2013.S01E12.HDTV.x264-LOL, The.Americans.2013.S01E13.HDTV.x264-LOL]
     [mail] Sent email with 0 attachments
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming isn't always correct

Post by rednoah »

It's not an exact science. :P I'll have a look.

You can always modify the script and add your own logic.

EDIT: Works for me

Code: Select all

Input: D:\testdata\AMC-TEST\the.americans.2013.112.hdtv-lol.mp4
the.americans.2013.112.hdtv-lol.mp4 [series: americans 2013, movie: Americans (2012)]
Exclude Movie: Americans (2012)
Group: [tvs:americans 2013, mov:null, anime:null] => [the.americans.2013.112.hdtv-lol.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [americans 2013]
Fetching episode data for [The Americans (2013)]
[TEST] Rename [D:\testdata\AMC-TEST\the.americans.2013.112.hdtv-lol.mp4] to [D:\output\TV Shows\The Americans (2013)\Season 01\The Americans (2013) - S01E12 - The Oath.mp4]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Make sure to test with the latest filebot/amc combo.
:idea: Please read the FAQ and How to Request Help.
sjboyd891
Posts: 11
Joined: 25 Apr 2013, 03:27

Re: Renaming isn't always correct

Post by sjboyd891 »

Thanks.

I also have the issue that sometimes it can't rename it so it just stops the unrar process. For instance, I have a file titled "law.and.order.svu.1423.hdtv-lol.mp4" that when extracted filebot can't seem to rename. There are multiple issues I think: 1) It's "svu" rather than "special victims unit" and 2) the season/episode are bunched together with no delineation.

Is there a way to fix this? Like, if it doesn't recognize it, it can still unrar it to a specific folder or something? That way I can regularly check that folder to see if there's something I need to manually rename.

I have a lot of torrents auto-downloading and extracting so I don't always notice the ones that haven't worked properly.

FYI, here is the log from this attempted auto extraction:

Code: Select all

Parameter: music = n
Parameter: subtitles = n
Parameter: artwork = n
Parameter: gmail = ************
Parameter: mailto = ****************
Parameter: ut_dir = T:\TORRENTS\1 TV\1FEED - Law and Order SVU\Law.and.Order.SVU.S14E23.HDTV.x264-LOL
Parameter: ut_file = Sample\law.and.order.svu.1423.hdtv-lol.sample.mp4
Parameter: ut_kind = multi
Parameter: ut_title = Law.and.Order.SVU.S14E23.HDTV.x264-LOL
Parameter: ut_label = Law & Order SVU
Parameter: ut_state = 5
Read archive [law.and.order.svu.1423.hdtv-lol.rar] to [T:\TORRENTS\1 TV\1FEED - Law and Order SVU\Law.and.Order.SVU.S14E23.HDTV.x264-LOL\law.and.order.svu.1423.hdtv-lol\Law.and.Order.SVU.S14E23.HDTV.x264-LOL]
Extracting files [T:\TORRENTS\1 TV\1FEED - Law and Order SVU\Law.and.Order.SVU.S14E23.HDTV.x264-LOL\law.and.order.svu.1423.hdtv-lol\Law.and.Order.SVU.S14E23.HDTV.x264-LOL\law.and.order.svu.1423.hdtv-lol.mp4]
Input: T:\TORRENTS\1 TV\1FEED - Law and Order SVU\Law.and.Order.SVU.S14E23.HDTV.x264-LOL\law.and.order.svu.1423.hdtv-lol\Law.and.Order.SVU.S14E23.HDTV.x264-LOL\law.and.order.svu.1423.hdtv-lol.mp4
Group: [tvs:null] => [law.and.order.svu.1423.hdtv-lol.mp4]
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming isn't always correct

Post by rednoah »

It got no results when checking law.and.order.svu against the tv series database.

Added a mapping law.and.order.svu => Law & Order: Special Victims Unit so it'll work if you try again tomorrow.
:idea: Please read the FAQ and How to Request Help.
Post Reply