problem with rename: Series record not found

Any questions? Need some help?
Post Reply
ytwig
Posts: 9
Joined: 16 Sep 2012, 22:36

problem with rename: Series record not found

Post by ytwig »

Hey,

I'm using a groovy script to rename my shows using TVDB, and getting a problem with SNL.
it looks like it fails to rename the file because it gets a 404 for one of the results from TVDB.

How can i fix this?

relevant line from script:

Code: Select all

	rename(file:file, db:'TheTVDB', format:tvFormat,strict:false)
result:

Code: Select all

Processing /volume1/downloads/tv/Saturday.Night.Live.S38E02.Joseph.Gordon.Levitt-Mumford.and.Sons.720p.HDTV.x264-2HD [PublicHD]/saturday.night.live.s38e02.joseph.gordon.levitt-mumford.and.sons.720p.hdtv.x264-2hd.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [saturday night live]
Fetching episode data for [Saturday Night Live]
Fetching episode data for [Saturday Night Live (JP)]
Series record not found: Saturday Night Live (JP) [en]: http://thetvdb.com/api/58B4AA94C59AD656/series/254999/all/en.zip
Failed to fetch episode data: [saturday night live]
Exception: Unable to match files to episode data

Thanks for this great program and help
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: problem with rename: Series record not found

Post by rednoah »

Not sure, it seems to be able to grab all the other data, only the Japanese series record fails.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: problem with rename: Series record not found

Post by rednoah »

Uploaded r1219 for you which should fix this problem => https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
ytwig
Posts: 9
Joined: 16 Sep 2012, 22:36

Re: problem with rename: Series record not found

Post by ytwig »

wow! that was fast :)
thanks for your quick help, will try and test.
ytwig
Posts: 9
Joined: 16 Sep 2012, 22:36

Re: problem with rename: Series record not found

Post by ytwig »

works :)

Code: Select all

Processing /volume1/downloads/tv/Saturday Night Live/Season 38/saturday.night.live.s38e02.joseph.gordon.levitt-mumford.and.sons.720p.hdtv.x264-2hd.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [saturday night live]
Fetching episode data for [Saturday Night Live]
Fetching episode data for [Saturday Night Live (JP)]
Series record not found: Saturday Night Live (JP) [en]: http://thetvdb.com/api/58B4AA94C59AD656/series/254999/all/en.zip
java.io.FileNotFoundException: Series record not found: Saturday Night Live (JP) [en]: http://thetvdb.com/api/58B4AA94C59AD656/series/254999/all/en.zip
	at net.sourceforge.filebot.web.TheTVDBClient.getSeriesRecord(Unknown Source)
	at net.sourceforge.filebot.web.TheTVDBClient.fetchEpisodeList(Unknown Source)
	at net.sourceforge.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations$1.call(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations$1.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Fetching episode data for [Saturday Night Live (Korea)]
Series record not found: Saturday Night Live (Korea) [en]: http://thetvdb.com/api/58B4AA94C59AD656/series/255000/all/en.zip
java.io.FileNotFoundException: Series record not found: Saturday Night Live (Korea) [en]: http://thetvdb.com/api/58B4AA94C59AD656/series/255000/all/en.zip
	at net.sourceforge.filebot.web.TheTVDBClient.getSeriesRecord(Unknown Source)
	at net.sourceforge.filebot.web.TheTVDBClient.fetchEpisodeList(Unknown Source)
	at net.sourceforge.filebot.web.AbstractEpisodeListProvider.getEpisodeList(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations$1.call(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations$1.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Skipped [/volume1/downloads/tv/Saturday Night Live/Season 38/saturday.night.live.s38e02.joseph.gordon.levitt-mumford.and.sons.720p.hdtv.x264-2hd.mkv] because [/volume1/downloads/tv/Saturday Night Live/Season 38/saturday.night.live.s38e02.joseph.gordon.levitt-mumford.and.sons.720p.hdtv.x264-2hd.mkv] already exists
Processed 1 files
ytwig
Posts: 9
Joined: 16 Sep 2012, 22:36

Re: problem with rename: Series record not found

Post by ytwig »

another strange result i'm getting is for boss TV show.
for some episodes it chooses 1 name and for the other another... why?

Code: Select all

Processing /volume1/downloads/tv/Boss/Season 2/Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Boss]
Fetching episode data for [BOSS]
Fetching episode data for [Boss (2011)]
[MOVE] Rename [/volume1/downloads/tv/Boss/Season 2/Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv] to [/volume1/downloads/tv/BOSS/Season 2/Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv]
Processed 1 files
Processing /volume1/downloads/tv/Boss/Season 2/Boss.S02E03.720p.HDTV.x264-EVOLVE.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Boss]
Fetching episode data for [BOSS]
Fetching episode data for [Boss (2011)]
[MOVE] Rename [/volume1/downloads/tv/Boss/Season 2/Boss.S02E03.720p.HDTV.x264-EVOLVE.mkv] to [/volume1/downloads/tv/Boss (2011)/Season 2/Boss.S02E03.720p.HDTV.x264-EVOLVE.mkv]
Processed 1 files
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: problem with rename: Series record not found

Post by rednoah »

Well, two shows with the same name. Not sure what I could do about that. Basically all options are the same, fuzzy logic just happens to converge on one of them.

What should be the correct show anyway? You can use --filter to include/exclude all eps from one of the shows.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: problem with rename: Series record not found

Post by rednoah »

That's really just bad luck. The bad episode match beats the good one by a few fractions, if there was an '2011' in the filename or foldername it would nudge it into the right match.

Code: Select all

1.0000: EpisodeFunnel: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
1.0000: EpisodeFunnel: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.1000: EpisodeBalancer: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.1000: EpisodeBalancer: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.6667: SubstringFields: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.6667: SubstringFields: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.0000: net.sourceforge.filebot.similarity.MetricCascade@1815bfb: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.0000: net.sourceforge.filebot.similarity.MetricCascade@1815bfb: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.3333: Numeric: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.3333: Numeric: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.0899: net.sourceforge.filebot.similarity.NameSimilarityMetric@10ea9ba: BOSS - 2x02 - Absolutely do not die VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
0.0870: net.sourceforge.filebot.similarity.NameSimilarityMetric@10ea9ba: Boss (2011) - 2x02 - Through and Through VS E:\testdata\Boss\Season 2\Boss.S02E02.720p.HDTV.x264-EVOLVE.mkv
This issue can't be fixed, I mean who is to say it's not that other show BOSS? You'll need to add your own filter expression to add this knowledge.

e.g.

Code: Select all

--filter "!(n ==~ /BOSS/)"
:idea: Please read the FAQ and How to Request Help.
ytwig
Posts: 9
Joined: 16 Sep 2012, 22:36

Re: problem with rename: Series record not found

Post by ytwig »

Thanks for investigating this, and for maintaining this great piece of work.
Post Reply