In previous version of Kodi I was able to playback channels with their Kodi URL (typically in recent versions pvr://channels/tv/All channels/pvr-addoname_ichannelID.pvr) in an STRM or directly with the python player but in v18 these methods don't work?
Is there a new way to call the PVR live TV playback outside of the PVR GUI?
Martin
I compiled with today's commit from ksooo
https://github.com/xbmc/xbmc/commit/339c...2bc1c845f6 now enables playback of pvr:// URL from python which is my major requirement however some thing is still off with STRM files as it seems to play the main strm file and not the playlist item.
08:46:33.138 T:140282314073856 ERROR: CInputStreamPVRBase - CInputStreamPVRBase - unable to obtain pvr addon instance for item '/home/martin/Videos/live.strm'
Martin
(2019-02-01, 16:26)emveepee Wrote: [ -> ]I compiled with today's commit from ksooo https://github.com/xbmc/xbmc/commit/339c...2bc1c845f6 now enables playback of pvr:// URL from python which is my major requirement however some thing is still off with STRM files as it seems to play the main strm file and not the playlist item.
08:46:33.138 T:140282314073856 ERROR: CInputStreamPVRBase - CInputStreamPVRBase - unable to obtain pvr addon instance for item '/home/martin/Videos/live.strm'
Martin
Do you have working minimalistic instructions that I can use to debug this? Maybe a STRM file with instructions what to do with it to run into the bug?
Okay, I think I understood what the problem is. Gimme some time to come up with a fix.
If you need anything let me know. The strm file that I test with is just the pvr:// url that shows in the logs when I play a file. It is backend specific but yours should be determined from this line
CInputStreamPVRChannel - CInputStreamPVRChannel::OpenPVRStream - opened channel stream pvr://channels/tv/All channels/pvr.nextpvr_8938.pvr
Martin
Thanks for having a look. I don't need this to work it just seems the current implmentation is wrong. I might investigate a bit before I create the issue.
Thanks again getting this working from python was my main item and you did that.
Martin
@
ksooo Do you know if pvr:// streams are mapped through substitution rules in advancedsettings.xml
ie
Code:
<substitute>
2019-02-13 16:12:34.371 T:38224 DEBUG: Registering substitution pair:
2019-02-13 16:12:34.371 T:38224 DEBUG: From: [pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr]
2019-02-13 16:12:34.371 T:38224 DEBUG: To: [http://live.str3am.com:2120]
...
2019-02-13 16:13:12.308 T:38224 NOTICE: VideoPlayer::OpenFile: pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr
I would like to use internet streams rather the DVB or FM card audio for some stations.
Martin
(2019-02-13, 23:15)emveepee Wrote: [ -> ]@ksooo Do you know if pvr:// streams are mapped through substitution rules in advancedsettings.xml
ie
Code:
<substitute>
2019-02-13 16:12:34.371 T:38224 DEBUG: Registering substitution pair:
2019-02-13 16:12:34.371 T:38224 DEBUG: From: [pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr]
2019-02-13 16:12:34.371 T:38224 DEBUG: To: [http://live.str3am.com:2120]
...
2019-02-13 16:13:12.308 T:38224 NOTICE: VideoPlayer::OpenFile: pvr://channels/radio/All channels/pvr.nextpvr_9016.pvr
I would like to use internet streams rather the DVB or FM card audio for some stations.
Martin
They are not, pvr:// is part of Kodis internal VFS and created on the fly when the pvr addon is loaded.
Thanks I thought since I can call them from python they might also go through substitution logic. I was going to look into getting strms working again in v18 but substitution would actually be great.
Martin
(2019-02-13, 23:33)emveepee Wrote: [ -> ]Thanks I thought since I can call them from python they might also go through substitution logic. I was going to look into getting strms working again in v18 but substitution would actually be great.
Martin
I'm not aware of any issues with strm's that contain pvr paths. Are you sure you are using the valid path?
Pretty sure the same strm file works in v17.
Martin
(2019-02-13, 23:52)emveepee Wrote: [ -> ]Pretty sure the same strm file works in v17.
Martin
Did you check if the path changed in v18?
I did check yes, I have python code that calls the same URL and it didn't change and it still works after ksooo's change for v18.1
Martin
(2019-02-14, 00:06)emveepee Wrote: [ -> ]I did check yes, I have python code that calls the same URL and it didn't change and it still works after ksooo's change for v18.1
Martin
Yeah, that PR was a revert to old behavior; not a long term solution.