oetspoker / subcentral

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

Error when searching for a serie & episode which was just imported #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When looking into another issue, I ran into this:

As a test data I inserted a dummy episode file to my import path 
(The.Big.Bang.Theory.S04E23.HDTV.XviD-FQM.avi which really is an empty file). 
Then I started and MP and opened TVSeries, waited for the new serie and episode 
to be imported.

After serie and episode appeared I tried to search subtitle for the episode 
using Bierdopje and Dutch language. I got the following error:

22-May-2011 22:05:50.654 Error [           Retriever]: Error while querying 
site Bierdopje
 System.NullReferenceException: Object reference not set to an instance of an object.
   at Bierdopje.API.HTTPHelper.GetHTTPResponse(String url)
   at Bierdopje.API.ApiLibrary.GetXMLApiResonse(String command, String[] parameters)
   at Bierdopje.API.ApiLibrary.FindShowByName(String name)

I restarted MP and re-tried, and everything was fine. My suspicion is that show 
name was null for some reason. I can also reproduce this 100%.

Original issue reported on code.google.com by seko...@gmail.com on 22 May 2011 at 7:10

GoogleCodeExporter commented 8 years ago

Is it possible that DBOnlineSeries.cOriginalName is at some point not known and 
null? I remember some discussion about this at IRC...

Original comment by seko...@gmail.com on 22 May 2011 at 7:18

GoogleCodeExporter commented 8 years ago
If show name was null, this would be visible in the GUI (skin) as well. Is that 
the case?

Original comment by mitja.skuver on 22 May 2011 at 7:19

GoogleCodeExporter commented 8 years ago
And to answer the question about cOriginalName, it is calculated on request. 
Almost impossible to be null as it's read instantly from TVDB data, if not 
available, then localized show name is used. Localized show name is same as 
original name for English language.

Original comment by mitja.skuver on 22 May 2011 at 7:21

GoogleCodeExporter commented 8 years ago

Dunno, I ran test against Bierdopje downloader with null title and got same 
error..

Original comment by seko...@gmail.com on 22 May 2011 at 7:30

GoogleCodeExporter commented 8 years ago
Seems I'm not able to reproduce it anymore with my debug build :(

Original comment by seko...@gmail.com on 22 May 2011 at 7:45

GoogleCodeExporter commented 8 years ago
Anything new?
Will lower the priority for now.

Original comment by mitja.skuver on 31 May 2011 at 7:37