2018-04-19, 06:07
I think I've discovered a bug that has cropped up with Tvheadend and Kodi 18 when watching recordings. (I haven't thoroughly investigated this yet; at the moment this is mostly anecdotal, and I'm looking for confirmation among other users.)
I've noticed that with Kodi v18, the HTSP client now uses the EPG duration when playing back a recording, rather than the duration of the recorded file itself. For instance, I have a couple programs that I have created Autotimer rules for that have a post-recording duration of a couple minutes because they tend to get cut off: if their EPG duration is slated to be 60 minutes but I have a 3 minute post-recording padding, the recorded file should be 63 minutes. However, when I select the recording in Kodi, the duration displayed still only displays 60 minutes, even though the recorded file itself is 63 minutes long. (Under Kodi v17 this was not the case.) Likewise, if for some reason there was and error in the recording (or for some reason I've replaced an error-riddled recording with a downloaded copy from else and informed Tvheadend about the new file with a call to /api/dvr/entry/filemoved to inform it of the new location of the downloaded recording) and the new file is only 46 minutes long instead of 60 minutes, Kodi will still display the duration as being 60 minutes, even though the file it is playing is only 46 minutes long.
The problem isn't really with the playback of the file; for the most part that plays without issue. The problem is what happens when Kodi reaches the end the file. If I manually stop playback before the end of the file is reached (regardless of whether the actual file's duration is shorter or longer than the EPG duration of the recorded program), there is no problem. However, and without fail, if I allow Kodi to play the recorded file to the end for a recording which actual duration differs from the EPG duration, Kodi crashes. This happens irrespective of whether the recording is shorter or longer than the EPG duration.
Has anyone else experienced this? Am I just imagining a correlation between the crashes of Kodi and what is causing it? (I know this is alpha software, but in my experience this is pretty much the only time I really experience crashes.) Is there some odd reason why the HTSP client is only reporting the duration of a recorded program as the EPG duration, rather than the actual duration that was recorded?
I've noticed that with Kodi v18, the HTSP client now uses the EPG duration when playing back a recording, rather than the duration of the recorded file itself. For instance, I have a couple programs that I have created Autotimer rules for that have a post-recording duration of a couple minutes because they tend to get cut off: if their EPG duration is slated to be 60 minutes but I have a 3 minute post-recording padding, the recorded file should be 63 minutes. However, when I select the recording in Kodi, the duration displayed still only displays 60 minutes, even though the recorded file itself is 63 minutes long. (Under Kodi v17 this was not the case.) Likewise, if for some reason there was and error in the recording (or for some reason I've replaced an error-riddled recording with a downloaded copy from else and informed Tvheadend about the new file with a call to /api/dvr/entry/filemoved to inform it of the new location of the downloaded recording) and the new file is only 46 minutes long instead of 60 minutes, Kodi will still display the duration as being 60 minutes, even though the file it is playing is only 46 minutes long.
The problem isn't really with the playback of the file; for the most part that plays without issue. The problem is what happens when Kodi reaches the end the file. If I manually stop playback before the end of the file is reached (regardless of whether the actual file's duration is shorter or longer than the EPG duration of the recorded program), there is no problem. However, and without fail, if I allow Kodi to play the recorded file to the end for a recording which actual duration differs from the EPG duration, Kodi crashes. This happens irrespective of whether the recording is shorter or longer than the EPG duration.
Has anyone else experienced this? Am I just imagining a correlation between the crashes of Kodi and what is causing it? (I know this is alpha software, but in my experience this is pretty much the only time I really experience crashes.) Is there some odd reason why the HTSP client is only reporting the duration of a recorded program as the EPG duration, rather than the actual duration that was recorded?