Page 1 of 1
Incorrectly identified tv show as a movie
Posted: 01 May 2014, 03:48
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
Re: Incorrectly identified tv show as a movie
Posted: 01 May 2014, 04:19
by rednoah
Re: Incorrectly identified tv show as a movie
Posted: 01 May 2014, 04:25
by Tweak_four17
Thanks!
Re: Incorrectly identified tv show as a movie
Posted: 02 May 2014, 04:14
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
Re: Incorrectly identified tv show as a movie
Posted: 02 May 2014, 06:31
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.
Re: Incorrectly identified tv show as a movie
Posted: 02 May 2014, 20:01
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?
Re: Incorrectly identified tv show as a movie
Posted: 03 May 2014, 12:32
by rednoah
Your syntax is wrong. No "then" keyword in Java/Groovy
Better:
Code: Select all
{folder.name == 'testdata' ? fn : folder.name}
Re: Incorrectly identified tv show as a movie
Posted: 03 May 2014, 20:34
by Tweak_four17
Works great! Thanks
Re: Incorrectly identified tv show as a movie
Posted: 05 May 2014, 06:29
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...
Re: Incorrectly identified tv show as a movie
Posted: 05 May 2014, 10:24
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.