geosone / seriesrenamer

Automatically exported from code.google.com/p/seriesrenamer
0 stars 1 forks source link

imdb is no longer returning episode titles #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Click "Get Titles"
2. Choose www.imdb.com as the Search Provider and click "Search"
3. Choose the correct series and click OK

What is the expected output? What do you see instead?

Episode titles should appear, like they do with other search providers... 
they no longer do.

What version of the product are you using? On what operating system?

version 0.9.7.0 on XP Home SP3

Original issue reported on code.google.com by elah...@gmail.com on 31 Mar 2010 at 2:52

GoogleCodeExporter commented 8 years ago
To fix, change Databases/Titles/IMDB.cfg Line 36, from:

RelationsPage=http://us.imdb.com%Lepisodes

Change to:

RelationsPage=http://www.imdb.com%Lepisodes

Original comment by elah...@gmail.com on 4 Aug 2010 at 7:29

GoogleCodeExporter commented 8 years ago
I know it's been a while, elahn.i, but I tried your fix and it no longer works 
(or does not seem to be for me).  

I'll look into this.

Original comment by jb@tech-tiles.com on 13 Oct 2012 at 2:36

GoogleCodeExporter commented 8 years ago
Hi jb, you now need the following in IMDB.cfg:

RelationsRegExp=<div>S(?<Season>\d*), 
Ep(?<Episode>\d*).+\n.+\n.+\n.+\n.+\n.+\n.+\n.+\n.+\n.+\n.+\n.+\nitemprop="name"
>(?<Title>.*?)</a>

RelationsStart=<div class="clear" itemscope 
itemtype="http://schema.org/TVSeason">

RelationsEnd=<a id="load_previous_episodes"

Also, in DataGenerator.cs, line 382, RegexOptions.Singleline needs to be 
removed. The best way would be to add it as an option to RelationProvider and 
have the value loaded from the provider.cfg file.

Another thing to consider is that only the latest season is shown on the 
RelationsPage now, to get season N append ?season=N to the URL. So to get all 
seasons, we'll need to take the Season from one of the matches and iterate 
through downloading the episodes from each previous season. This could be 
further refined by adding a method to InfoEntryManager which returns a List of 
seasons, thereby allowing us to download the needed seasons' episode titles 
only.

Original comment by elah...@gmail.com on 9 Nov 2012 at 8:07