2020-02-11, 04:50
(2020-02-10, 22:15)d21spike Wrote: [ -> ]That didn't work for me. I was able to get it figured out by adding ordering to the query in the getChannels function so that the Orange URL is selected (which is the correct one) instead of the blue.(2020-02-10, 21:53)Doctor Eggs Wrote: [ -> ]@d21spikeI am going to go out on a limb here and say you have changed subscription packages recently. With this, the add-on constantly checks for subscription changes but the guide can become stale due to it's nature.
Great Add-on! I really appreciate the hard work you've done.
I'm having an issue playing channels from the Orange Sling package through IPTV Simple. The Blue Sling channels play just fine. I was trying to play South Park on Comedy Central, but nothing happens.
Here's my log with the error: https://pastebin.com/5uzSYsBz
Orange Channels play fine through the add-on.
Here's my log showing the same South Park episode playing successfully through the add-on: https://pastebin.com/cQUJ29es
It looks like they have different URLs that they are trying to play:
ERROR with IPTV:
plugin://plugin.video.sling/?mode=play&url=http://cbd46b77.cdn.cms.movetv.com/cms/api/channels/29938328f60d447299ec48511a09ebab/schedule/now/playback_info.qvt
SUCCESS with the add-on:
plugin://plugin.video.sling/?mode=play&url=http://cbd46b77.cdn.cms.movetv.com/cms/api/channels/3844c0aee4df43849a938774ee504b4a/schedule/now/playback_info.qvt
More specifically, the PVR is trying to play the channel 29938328f60d447299ec48511a09ebab aka COMEDY (Comedy Central).
This channel is available to the following subscriptions:
Sling Orange
Sling Orange and Sling Blue
You are indeed subscribed to Sling Orange and Blue but your subscription package only comes back with 7a0ff80be0c14f4da6b6cc510b9be57b aka COMEDY-M (Comedy Central).
Thus, when you try to play the channel above, it sees it's not in your subscription package and refuses to license.
You can try to trigger Channel Update and Guide Update via Sling add-on settings. If that does not work, proceed one step further to clear cache in the PVR database via Kodi settings...
(exert from IPTV Simple github page)
Clear the EPG cache
Settings->PVR & Live TV->Guide->Clear cache
For it to take effect in the case of EPG relatd config and for channel related config will need to clear the full cache
Settings->PVR & Live TV->General->Clear cache
A Kodi restart may be necessary for full effect.
I sent you a pull request on Git with this update. It looks like there are a lot of changes in Git that I don't have locally so I'm pretty sure I made the change in the correct place. getChannels looks like it got moved to the Guide service.
For anyone that is also having this issue, you can go to addons/plugin.video.sling/resources/lib/service/slinger.py go to line 575 and change
"WHERE Channels.Name NOT LIKE '%Sling%' AND Channels.Hidden = 0 ORDER BY Channels.Name asc"
TO
"WHERE Channels.Name NOT LIKE '%Sling%' AND Channels.Hidden = 0 ORDER BY Channels.Name asc, Channels.Last_Update asc"