Kodi Community Forum
Bug XBMC webserver showing wrong movie runtime - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Bug XBMC webserver showing wrong movie runtime (/showthread.php?tid=153790)



XBMC webserver showing wrong movie runtime - trieste - 2013-01-29

The runtimes shown on the webserver (latest nightly 20130127) are completely wrong. Below, as an example, are four files of nearly identical length with the reported runtime. I'm not familiar with XBMC bug reporting and searches are swamped by "runtime errors".

Quote:1:47:27 - 6300 Minutes
1:47:28 - 6420
1:47:28 - 6120
1:47:29 - 6000



RE: XBMC webserver showing wrong movie runtime - CaptZ - 2013-07-30

I have the same issue, for a long time already.
Some examples as copied from the webserver pages (between brackets the playing time from the 'movie information' dialogue in xbmc):
  • Back to the Future (1985) Runtime: 6960 minutes (playing time: 111 minutes)
  • Casino Royale (2006) Runtime: 8640 minutes (playing time: 144 minutes)
  • The Circus (1928) Runtime: 4260 minutes (playing time: 68 minutes = 4080 seconds)
  • The Green Mile (1999) Runtime: 11340 minutes (playing time: 189 minutes = 11340 seconds)
  • Jurassic Park (1993) Runtime: 7620 minutes (playing time: 121 minutes)
  • The Kid (1921) Runtime: 4080 minutes (playing time: 67 minutes = 4020 seconds)
  • Mission: Impossible (1996) Runtime: 6600 minutes (playing time: 105 minutes)
  • Titanic (1997) Runtime: 11640 minutes (playing time: 187 minutes = 11220 seconds)

It seems like the webserver displays the time in seconds - plus an additional minute for every quarter of playing time or so (except that movies of about the same length display different runtimes, and 'The Green Mile' is spot on displaying a runtime of 11340 minutes with 11340 secs of actual playing time)).

Anyone please post a fix for this bug, or, if a fix exists please link to it. I found this thread while searching for 'xbmc "movie runtime" error' and did not find a fix.

Running RaspBMC (XBMC on Raspberry Pi), June 2013 release.


RE: XBMC webserver showing wrong movie runtime - Martijn - 2013-07-30

What, when, where, how?

Version and so on needed........


RE: XBMC webserver showing wrong movie runtime - negge - 2013-07-30

I can confirm that this happens with the latest alpha (end of June build). You go to Movies, click a movie and it will say something like "Runtime: 7020 minutes". Obviously it should be divided by 60 or something.


RE: XBMC webserver showing wrong movie runtime - Milhouse - 2013-07-30

Yes, it's xbmc/addons/webinterface.default/js/MediaLibrary.js that is simply displaying the raw runtime value (stored as seconds) with " minutes" appended.

Also just noticed that the runtime property is always 0 when requested via VideoLibrary.GetEpisodes, even when valid streamdetails with video duration are present - presumably this is why there is no attempt to retrieve it for TV shows, although there is code to display it (if present, and incorrectly as minutes, not seconds).


RE: XBMC webserver showing wrong movie runtime - negge - 2013-07-30

(2013-07-30, 23:19)MilhouseVH Wrote: Also just noticed that the runtime property is always 0 when requested via VideoLibrary.GetEpisodes, even when valid streamdetails with video duration are present - presumably this is why there is no attempt to retrieve it for TV shows, although there is code to display it (if present, and incorrectly as minutes, not seconds).

The runtime is there in VideoLibrary.GetEpisodes (at least on my late June build), but like you said the runtime is not shown for episodes in the web interface.


RE: XBMC webserver showing wrong movie runtime - Martijn - 2013-07-31

please trac ticket it so we can get it looked at.


RE: XBMC webserver showing wrong movie runtime - Milhouse - 2013-07-31

(2013-07-30, 23:53)negge Wrote: The runtime is there in VideoLibrary.GetEpisodes (at least on my late June build), but like you said the runtime is not shown for episodes in the web interface.

Odd, I'm looking at the current version in master and can see runtime retrieved for GetMovies, but not GetEpisodes.

If a runtime is ever retrieved by GetEpisodes - then in my recent Frodo build (OpenELEC 3.1.5 from github) - it's always zero so will always be displayed incorrectly, no matter whether " seconds" or " minutes" is used as the suffix. Might already be fixed in Gotham, though - but then what is "master" if not Gotham?


RE: XBMC webserver showing wrong movie runtime - Milhouse - 2013-07-31

(2013-07-31, 00:03)Martijn Wrote: please trac ticket it so we can get it looked at.

Trac #14523 for the webserver "minutes" issue, and Trac #14524 for the JSON/GetEpisodes/runtime issue.


RE: XBMC webserver showing wrong movie runtime - CaptZ - 2013-09-09

(2013-07-30, 21:07)Martijn Wrote: What, when, where, how?

Version and so on needed........

If you give me a hint on how to find the exact xbmc version on raspbmc i'm happy to type in all the commands. (can't find it under 'system' submenu 'system info')

note: it's Still an issue after the last raspbmc update (August).