damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

Runtime always 0 #1119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Force moving pictures to always use runtime from data source provider
2. Add a new movie with danish (any non-english language?) MediaPortal GUI

What is the expected output? 
Runtime bigger than 0 ;o)

What do you see instead?
Runtime always 0

What version of Moving Pictures are you using? 
1.5.1
IMDB+ scraper: 4.7.4
IMDB scraper: 2.3.2

What version of MediaPortal?
1.3.0 RC

What Skin?
StreamedMP. 

Not related to skin or MP though because the configurator shows a runtime of 0 
also.

I analyzed the problem to the following:
1. IMDB and IMDB+ scrapers always have a runtime of 0. These scrapers seem to 
have the highest priority when using auto managed data sources.
2. Manually managing the data sources I can prioritize the TMDB provider. This 
seems to return a runtime if the MediaPortal GUI is english, problem is I have 
it set to danish so I get a runtime of 0.

I debugged a bit and here is a dump of the requests and responses from TMDB 
with different GUI languages in the attached file.

MediaInfo runtime is not an option for me because I have placeholder movies for 
my DVD collection that would cause the runtime to be a few seconds.

Original issue reported on code.google.com by henning....@gmail.com on 3 Mar 2013 at 10:23

GoogleCodeExporter commented 8 years ago
The promised dump.

Original comment by henning....@gmail.com on 3 Mar 2013 at 10:25

Attachments:

GoogleCodeExporter commented 8 years ago
Did you check if the TMDb API returns 0 runtime for Danish? If it does then 
check online if it has a value for the Danish translations.

Note: it does not fill in english values when danish is not available, you need 
to enter this unfortunately.

Original comment by damien.haynes@gmail.com on 19 Apr 2013 at 11:14

GoogleCodeExporter commented 8 years ago
Yes, you can see in the dump file that the runtime returned from TMDB is 0 for 
the danish language. Browsing the same movie online also shows the runtime as 0 
when selecting the danish language. 
For a solution I was thinking if it was possible to set the language for the 
TMDB metadata fetching separately of the MediaPortal GUI language. I wouldn't 
mind if I only get the english metadata.
But actually the main problems seems to be that the IMDB scrapers return a 
runtime of 0. Is this problem reproducible?

Original comment by henning....@gmail.com on 21 Apr 2013 at 10:01

GoogleCodeExporter commented 8 years ago
I fixed IMDb script in 
http://code.google.com/p/moving-pictures/source/detail?r=1536.

Original comment by damien.haynes@gmail.com on 11 Jan 2014 at 10:43

GoogleCodeExporter commented 8 years ago
I think the fallback to IMDb will fix your problem for now, there is not much I 
can do about TMDb not returning the correct value except for you to add it 
there as its an open database.

Original comment by damien.haynes@gmail.com on 11 Jan 2014 at 10:45