Posts: 1,294
Joined: Jan 2011
Reputation:
55
myron
Posting Freak
Posts: 1,294
Well, the complete <streamdetails> tag is quite obsolete.
Kodi reads this on import, but always overwrites the information on first play with its self scanned mediainfo values.
(At least for the internal Kodi database - NFOs are not altered in any way)
Dunno how PseudoTV works, but it should always use the internal Kodi library & values (and not parsing NFOs on its own)?!
But, if i do an "export library" (Kodi 16), i STILL get the <durationineconds> entry.
So again dunno what should be obsolete here?!
Cannot read the thread as unregistered;
Maybe you can cop&paste some parts an PN me... or send a XML, how PTV expects it?
"durationin" reads kinda wrong...
Posts: 100
Joined: May 2016
2016-06-12, 20:43
(This post was last modified: 2016-06-12, 21:04 by hawikoeln.)
In the last days I wrote some perl scipts to feed some mediainfo from my ISO files into the NFO files (individual episodes are ISO files here).
I can confirm that Kodi slurps the durationinseconds tag within streamdetails/video from NFOs into it's database. This tag is correct for videos. Using the additional runtime tag does not hurt. However streamdetails will become overwritten by Kodi during playback.
On episodes I didn't get it right til today. There seems to be streamdetails/video/duration but no durationinseconds. A runtime tag does exist as well. I will look into Kodis source to find what I need here.
***EDIT*** For episodes I will test durationinseconds AND set runtime too - just in case.
Posts: 7,133
Joined: May 2011
Reputation:
381
2016-06-12, 21:04
(This post was last modified: 2016-06-12, 21:08 by Lunatixz.)
PTVL grabs duration details from Kodis library and via direct file meta parsing.
It appears some users have incomplete NFOs with missing duration details. For whatever reason the missing details are presumably not filled in by Kodis library? I have not confirmed or verified. PTVL is straight forward and directly parses Kodis library meta. If media is properly scrape, PTVL will handle the file properly.
When I use the term "Accurate duration" I refer to the actual duration of the show not it's given runtime. ie. TVDB reports 30min runtime, but actual runtime with commercials removed is 23mins.
Sent from my SM-G935T