Incorrectly identified tv show as a movie

Any questions? Need some help?
Post Reply
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Here is a log file of a tv show that was misidentified as a movie..is there something that can be done to avoid this using amc?

Code: Select all

Parameter: seriesFormat = {new File('H:/videos/Kids TV Shows/', n.replace(':',' -').replace('?','')).exists() ? 'H:/videos/Kids TV Shows/'+n.replace(':',' -').replace('?','') : 'G:/videos/TV Shows/'+n.replace(':',' -').replace('?','')}/{episode.special ? 'Special' : 'Season '+s}{(' (')+vf.match(/720[pP]|1080[pP]/)+(')')}/{n.replaceTrailingBrackets().replace(':',' -').replace('?','')} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {t.replace(':',' -').replace('?','').replacePart (' (Part $1)')} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: movieFormat = H:\videos\Movies\{n.replace(':',' -').replace('?','')} ({y}){" CD$pi"} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: ignore = (?i)american.dad|American.Dad|American.dad
Parameter: pushover = *****
Parameter: plex = 127.0.0.1
Parameter: storeReport = y
Parameter: gmail = *****
Parameter: excludelist = amc.txt
Argument: C:\Downloads\Complete torrents\moved
Input: C:\Downloads\Complete torrents\moved\revolution.2012.219.hdtv-lol.mp4
revolution.2012.219.hdtv-lol.mp4 [series: Revolution, movie: Revolution 2012 (2009)]
Exclude Series: Revolution
Group: [tvs:null, mov:revolution 2012 2009, anime:null] => [revolution.2012.219.hdtv-lol.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Downloads\Complete torrents\moved\revolution.2012.219.hdtv-lol.mp4]
[COPY] Rename [C:\Downloads\Complete torrents\moved\revolution.2012.219.hdtv-lol.mp4] to [H:\videos\Movies\Revolution 2012 (2009) .mp4]
Processed 1 files
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Re: Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Thanks!
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Re: Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Found another..

Code: Select all

Parameter: seriesFormat = {new File('H:/videos/Kids TV Shows/', n.replace(':',' -').replace('?','')).exists() ? 'H:/videos/Kids TV Shows/'+n.replace(':',' -').replace('?','') : 'G:/videos/TV Shows/'+n.replace(':',' -').replace('?','')}/{episode.special ? 'Special' : 'Season '+s}{(' (')+vf.match(/720[pP]|1080[pP]/)+(')')}/{n.replaceTrailingBrackets().replace(':',' -').replace('?','')} - S{s.pad(2)}E{es*.pad(2).join('-E')} - {t.replace(':',' -').replace('?','').replacePart (' (Part $1)')} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: movieFormat = H:\videos\Movies\{n.replace(':',' -').replace('?','')} ({y}){" CD$pi"} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: ignore = (?i)american.dad|American.Dad|American.dad
Parameter: pushover = *****
Parameter: plex = 127.0.0.1
Parameter: storeReport = y
Parameter: gmail = *****
Parameter: excludelist = amc.txt
Argument: C:\Downloads\Complete torrents\moved
Input: C:\Downloads\Complete torrents\moved\the.vampire.diares.520.hdtv-lol.mp4
the.vampire.diares.520.hdtv-lol.mp4 [series: null, movie: The Day the Earth Moved (1997)]
Group: [tvs:null, mov:the day the earth moved 1997, anime:null] => [the.vampire.diares.520.hdtv-lol.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Downloads\Complete torrents\moved\the.vampire.diares.520.hdtv-lol.mp4]
[COPY] Rename [C:\Downloads\Complete torrents\moved\the.vampire.diares.520.hdtv-lol.mp4] to [H:\videos\Movies\The Day the Earth Moved (1997) .mp4]
Processed 1 files
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrectly identified tv show as a movie

Post by rednoah »

That one should work:

Code: Select all

Input: /Users/reinhard/dev/test/amc/the.vampire.diares.520.hdtv-lol.mp4
the.vampire.diares.520.hdtv-lol.mp4 [series: the vampire diares, movie: Vampire (2011)]
Exclude Movie: Vampire (2011)
Group: [tvs:the vampire diares, mov:null, anime:null] => [the.vampire.diares.520.hdtv-lol.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [the vampire diares]
Fetching episode data for [The Vampire Diaries]
[TEST] Rename [/Users/reinhard/dev/test/amc/the.vampire.diares.520.hdtv-lol.mp4] to [TV Shows/The Vampire Diaries/Season 05/The Vampire Diaries - S05E20 - What Lies Beneath.mp4]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
It somehow gets confused with your folder name.
:idea: Please read the FAQ and How to Request Help.
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Re: Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Originally I had FileBot move my files into a \moved\ folder w/o renaming using format="{fn}", however this is what seems to be causing the error as the file name doesn't include the s05e10, just .510. So I tried something like

Code: Select all

{if (folder.name =='Complete torrents') then {fn} else {folder.name}}
Which works to rename video files based on the folder they come from, except it draws an error when it tries to draw from Complete torrent

Code: Select all

[No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.then() is applicable for argument types: (Script2$_run_closure1) values: [Script2$_run_closure1@3ad3a52a]
Possible solutions: grep(), get(java.lang.String), use([Ljava.lang.Object;), grep(java.lang.Object), wait(), dump()] The Vampire Diaries - 5x20 - What Lies Beneath 
I want it to rename the file to whatever the directory its coming from is called, unless it comes from \Completed torrents\ in which case to just leave it the same {fn}

Any thoughts?
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrectly identified tv show as a movie

Post by rednoah »

Your syntax is wrong. No "then" keyword in Java/Groovy

Better:

Code: Select all

{folder.name == 'testdata' ? fn : folder.name}
:idea: Please read the FAQ and How to Request Help.
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Re: Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Works great! Thanks
Tweak_four17
Donor
Posts: 53
Joined: 24 Apr 2014, 19:30

Re: Incorrectly identified tv show as a movie

Post by Tweak_four17 »

Code: Select all

Parameter: seriesFormat = {new File('H:/videos/Kids TV Shows/', n.replace(':',' -').replace('?','')).exists() ? 'H:/videos/Kids TV Shows/'+n.replace(':',' -').replace('?','') : 'G:/videos/TV Shows/'+n.replace(':',' -').replace('?','')}/{episode.special ? 'Special' : 'Season '+s}{(' (')+vf.match(/720[pP]|1080[pP]/)+(')')}/{n.replaceTrailingBrackets().replace(':',' -').replace('?','')} - S{s.pad(2)}E{es*.pad(2).join('-E').replaceAll('null',{episode.special ? special.pad(2):''})} - {t.replace(':',' -').replace('?','').replacePart (' (Part $1)')} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: movieFormat = H:\videos\Movies\{n.replace(':',' -').replace('?','')} ({y}){" CD$pi"} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: ignore = (?i)american.dad|American.Dad|American.dad
Parameter: pushover = *****
Parameter: plex = 127.0.0.1
Parameter: storeReport = y
Parameter: gmail = *****
Parameter: excludelist = amc.txt
Argument: C:\Downloads\Complete torrents\downloads
Input: C:\Downloads\Complete torrents\downloads\Robot.Chicken.S07E04.HDTV.x264-KILLERS.mp4
Exclude: C:\Downloads\Complete torrents\downloads\test.bat
Group: [tvs:robot chicken] => [Robot.Chicken.S07E04.HDTV.x264-KILLERS.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Robot Chicken]
Fetching episode data for [Robot Chicken]
[COPY] Rename [C:\Downloads\Complete torrents\downloads\Robot.Chicken.S07E04.HDTV.x264-KILLERS.mp4] to [G:\videos\TV Shows\Robot Chicken\Season 2\Robot Chicken - S02E04 - Celebrity Rocket .mp4]
Processed 1 files
May 04, 2014 10:38:34 PM net.sourceforge.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.nio.file.AccessDeniedException: G:\videos\TV Shows\Robot Chicken\Season 2\Robot Chicken - S02E04 - Celebrity Rocket .mp4:metadata
Notify Plex: 127.0.0.1
Sending Pushover notification
Saving report as 
     [mail] Sending email: Change Log
     [mail] Sent email with 0 attachments
Done
Mismatched season 7 for season 2, so then I tried to help it along by clearing out the clutter in the filename..

Code: Select all

Parameter: seriesFormat = {new File('H:/videos/Kids TV Shows/', n.replace(':',' -').replace('?','')).exists() ? 'H:/videos/Kids TV Shows/'+n.replace(':',' -').replace('?','') : 'G:/videos/TV Shows/'+n.replace(':',' -').replace('?','')}/{episode.special ? 'Special' : 'Season '+s}{(' (')+vf.match(/720[pP]|1080[pP]/)+(')')}/{n.replaceTrailingBrackets().replace(':',' -').replace('?','')} - S{s.pad(2)}E{es*.pad(2).join('-E').replaceAll('null',{episode.special ? special.pad(2):''})} - {t.replace(':',' -').replace('?','').replacePart (' (Part $1)')} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: movieFormat = H:\videos\Movies\{n.replace(':',' -').replace('?','')} ({y}){" CD$pi"} {('(')+vf.match(/720[pP]|1080[pP]/)+(')')}
Parameter: ignore = (?i)american.dad|American.Dad|American.dad
Parameter: pushover = *****
Parameter: plex = 127.0.0.1
Parameter: storeReport = y
Parameter: gmail = *****
Parameter: excludelist = amc.txt
Argument: C:\Downloads\Complete torrents\downloads
Input: C:\Downloads\Complete torrents\downloads\Robot Chicken - S07e04.mp4
Exclude: C:\Downloads\Complete torrents\downloads\test.bat
Group: [tvs:robot chicken] => [Robot Chicken - S07e04.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Robot Chicken]
Fetching episode data for [Robot Chicken]
[COPY] Rename [C:\Downloads\Complete torrents\downloads\Robot Chicken - S07e04.mp4] to [G:\videos\TV Shows\Robot Chicken\Season 2\Robot Chicken - S02E04 - Celebrity Rocket .mp4]
Processed 1 files
May 04, 2014 10:42:12 PM net.sourceforge.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.nio.file.AccessDeniedException: G:\videos\TV Shows\Robot Chicken\Season 2\Robot Chicken - S02E04 - Celebrity Rocket .mp4:metadata
Notify Plex: 127.0.0.1
Sending Pushover notification
Saving report as 
     [mail] Sending email: Change Log
     [mail] Sent email with 0 attachments
Done 
Something borked at theTVdb? Tvrage correctly identified the file when I put in through the gui manually...
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrectly identified tv show as a movie

Post by rednoah »

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Robot Chicken]
Fetching episode data for [Robot Chicken]
[TEST] Rename [/home/reinhard/workspace/Robot Chicken - S07e04.mp4] to [Robot Chicken - 7x04 - Rebel Appliance.mp4
Seems to work fine now. I'm guessing the original log is from when TheTVDB didn't have an entry for 7x04 yet at all, in which case FileBot picks the "next best".

You can always check what filebot "sees" by using the -list command.
:idea: Please read the FAQ and How to Request Help.
Post Reply