Beta Sling - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: Beta Sling (/showthread.php?tid=351048) |
RE: Sling - Doctor Eggs - 2020-02-11 (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. 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" RE: Sling - d21spike - 2020-02-11 (2020-02-11, 04:50)Doctor Eggs 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. Let me just say thank you for trying to help with this add-on, definitely shows you have at some insight into what you're doing. That said let's look at the problem at hand. You're claiming that the guide is playing Sling Blue channels over Sling Orange channels implying that on the Sling side of things, they take preference to Sling Orange when both channels exist in a subscription package. Unfortunately, or fortunately (depending how you look at it), this is not the case. The following URL is a JSON list of channels you are subscribed to: Sling Orange and Blue Channel Lineup One thing to notice, we'll use the example from last time, is that it lacks the Blue versions of channels if there is an Orange alternative. Your PVR is trying to play a Blue channel, as such since it's not listed in your channel lineup it is not licensed and does not play. The problem becomes one of stale data cached on your system and not of channel preference from Sling. On the topic of stale data. You mentioned "getChannels looks like it got moved to the Guide service," this tells me you're running an outdated version of the add-on. Specifically, older than 10 days ago or version 0.0.86. In this release, the Slinger service transitioned from a file based EPG to one where IPTV Simple calls on a web page hosted on the device. This web page is created on the fly by querying the database and has less chance of becoming stale as a file would. To tackle the stale data I requested that you run "Channel Update" and "Guide Update." At least in the current version, I have trouble believing this didn't rectify the issue...here's why: In "Channel Update" after it pulls in the subscription package and processes the channels, the very last thing it does is in slinger.py, line 354 it loops through the channels in the database and deletes anything that wasn't returned in the subscription package. (This would have removed your Sling Blue channels from the database as they are not included in the URL I referenced above.) Triggering "Guide Update" on the now corrected channel lineup will pull in data for those channels and in versions prior to 0.0.86 it would recreate the playlist files used by IPTV Simple. (This is no longer required in newer versions since as I mentioned the page is dynamically created.) As I said, the add-on constantly checks for subscription changes. Specifically, each visit to the main menu will retrieve your subscription package identifiers (sling.py, line 67) and each visit to the channels menu will pull in the page referenced above to include/exclude any subscription changes (channels.py, line 19). This is why you had no issues with playback here since there was no stale data. Having addressed that, I hope you can see the problem is not the ordering of the data that comes back from the database but your PVR displaying channels you are no longer subscribed to. If there is something that truly needs addressed, it would be figuring out a way to not have this occur. Moving onto your fix. I went as far as populating the Channels table with both Sling Blue and Sling Orange channels, since as you can see above, as of current writing, the Sling Orange and Blue does not contain duplicates. Then I proceeded to test the query both with and without your fix, which also as of this time does indeed give prioritization to Sling Orange channels. My problem with this fix however is how it is accomplished and whether or not it can be broken, which I believe it can. You rely on adding Channels.Last_Update to the sort which simply is a timestamp of when the channel was last pulled from your subscription package. If the order of channels ever changes in the URL above, which it does, then this fix may no longer function. Closest example I can think of is, Post 11 where both channels were included. As such, we try to think of patches that can have a lasting effect on the issue and not just the symptom. With all that said, I don't have a problem adding your "fix" into the add-on but I think I came up with a better one, more so in the regard that no matter what Sling Orange channels with be given priority. Your change added changed the ORDER BY to "ORDER BY Channels.Name asc, Channels.Last_Update asc" whereas my suggestion is "ORDER BY Channels.Name asc, substr(Channels.Call_Sign, -2) = '-M' desc". As you can see, it would first sort the channels by name ascending and then afterwards sort it by the condition that the suffix of the Call_Sign is '-M', otherwise the only way I am aware of to tell the two types of channels apart. I'll make sure this gets added to the next iteration. RE: Sling - markeymark - 2020-02-11 (2020-02-10, 14:57)d21spike Wrote:(2020-02-09, 22:05)markeymark Wrote: anyone have issues with incorrect epg data being pulled?(2020-02-10, 02:56)clones Wrote:(2020-02-09, 22:05)markeymark Wrote: anyone have issues with incorrect epg data being pulled? ok many thanks RE: Sling - Doctor Eggs - 2020-02-11 (2020-02-11, 17:28)d21spike Wrote:(2020-02-11, 04:50)Doctor Eggs 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. Thank you for posting this info. I updated to version 0.95 in Git, cleared out my addon_data folder, and it is still an issue. I didn't realize that there was a function that deleted channels that weren't available to me but looking at sling.db shows that I still have both channels (COMEDY and COMEDY-M as well as all the other channels available in Orange and Blue). Having not known about the delete functionality, I thought is was a problem with priority which led me to add the additional order by. When I signed up for Sling, I signed up for both Orange and Blue from the beginning so I'm not sure if that has something to do with it. Probably not but you mentioned earlier that I may have just recently changed my subscription. When I go to Sling Orange and Blue Channel Lineup and search for "COMEDY" it only finds "COMEDY-M" as one of the channels which matches with what you mentioned above. Ultimately it looks like the delete channels isn't working for me and that putting in the additional order by statement is not getting to the root cause of my issue. Agreed that ordering by ", substr(Channels.Call_Sign, -2) = '-M' desc" is a better temporary solution. On a side note, the dynamic creation of channels.m3u and guide.xml is awesome! Thank you for that. RE: Sling - d21spike - 2020-02-11 (2020-02-11, 18:31)Doctor Eggs Wrote: Thank you for posting this info. No problem at all, key for me is to get to the bottom of the issue to keep it from happening which in this case you may be right the delete statement may need a look. It's especially easier when both parties understand whats going on. I sort of touched on this in my example, but it appears the previously Sling Orange and Blue used to list both versions of the channel which is why I had to include a name filter so only one got displayed. It appears now they only include one copy, the Sling Orange. This is why I said it's subject to change and sadly we don't know when those changes occur till something goes wrong. So in your case even though you yourself didn't change your subscription, it appears the lineup itself has changed to exclude the duplicate channels from the "other" package. Now onto the problem. When you say you "cleared out my addon_data folder" I'm assuming you mean Kodi/userdata/addon_data/plugin.video.sling? This definitely should have removed the database. It resides in that directory, it's name is "sling.db". We can try a few things for testing/resolution purposes. Test 1 Wrote:On your device if you have Kodi running with the current version of the add-on and the guide enabled, you can either use the same device or another on your local network and navigate to http://KODI_DEVICE_LOCAL_IP:9999/channels.m3u Test 2 Wrote:The database file mentioned above, with Kodi not running you can delete it and it will be recreated from scratch eliminating the possibility of stale data in the Sling add-on. Then going to the page in Test 1 you can see which channel is returned. Test 3 Wrote:Running updates via Sling add-on settings such as Channel Update. Make sure it runs to completion 0 - 100% via the progress bar notification. The service that runs this, Slinger, uses a file for it's metrics/cue system, Slinger.json. These functions use try/catch system to suppress hard errors and provide better execution. If an error occurs, it is logged (if add-on debugging is enabled) and also written to this metrics file. Included in the Sling add-on settings is the ability to view the contents of this file which includes a field called Last_Error. If the delete statement happened to fail, the error would be written here. Do note, there can be as much as a 60 second delay between the update button click and the actual execution of it. RE: Sling - Doctor Eggs - 2020-02-11 When I try to go the channels.m3u, it doesn't return anything: I did dig through kodi.log and saw that it included the 29938328f60d447299ec48511a09ebab (Sling Blue COMEDY) when I tried to play it. I'm assuming that when I go into the database I should not be seeing the additional Sling Blue channels that I am seeing (CNN, COMEDY, COMET). Is this correct? RE: Sling - d21spike - 2020-02-11 (2020-02-11, 20:46)Doctor Eggs Wrote: When I try to go the channels.m3u, it doesn't return anything:Yup that's definitely a stale database. The channels url didn' show anything because chrome doesn't like the syntax, you can just right-click and select "View page source". RE: Sling - Doctor Eggs - 2020-02-11 (2020-02-11, 21:47)d21spike Wrote:I tried updating to 0.95 on another box and while the m3u grabs the correct url, looking at sling.db shows the same data. The only difference is that the order is different meaning that the "-M"s are listed first when I "select * from channels order by channels.name".(2020-02-11, 20:46)Doctor Eggs Wrote: When I try to go the channels.m3u, it doesn't return anything:Yup that's definitely a stale database. The channels url didn' show anything because chrome doesn't like the syntax, you can just right-click and select "View page source". RE: Sling - Doctor Eggs - 2020-02-12 @d21spike Looks like my channel_url is not returning the correct value. This is what you provided above which is correct: https://cbd46b77.cdn.cms.movetv.com/cms/publish3/domain/channels/v4/-0500/560/MjMxLDY1OCw3MTM=/1.json When I log(channels_url) in slinger.py (after line 317) I get the following URL which has COMEDY CENTRAL (and others) in both Blue and Orange https://cbd46b77.cdn.cms.movetv.com/cms/publish3/domain/channels/v4/-0500/560/MjE3LDY1OCw3MTM=/1.json The difference being in the subs variable MjMx vs MjE3. RE: Sling - snoopyjoe - 2020-02-12 So I'm getting something weird and am not sure if it's something to do with the InputStream or the Sling addon. Live channels will work just fine but any on-demand content does not play. Glancing over the log it looks like it fail at the inputstream section, but there is no error inside of the Sling addon. The log is after a clean install and first login. Sling TV log RE: Sling - clones - 2020-02-13 This morning I noticed the guide had not updated, went into the program, requested manual update to the guide, and received an error; shut down kodi tried again but am still getting an error message. Live tv still seems to play okay. http://paste.kodi.tv/uhoremuqid RE: Sling - clones - 2020-02-14 (2020-02-13, 15:42)clones Wrote: This morning I noticed the guide had not updated, went into the program, requested manual update to the guide, and received an error; shut down kodi tried again but am still getting an error message. Live tv still seems to play okay. http://paste.kodi.tv/uhoremuqid Wasn't if I'm missing something, the guide was empty this morning, an attempt at manual channel update also prompted an error EDIT: uninstalled sling & simple iptv and it looks like all is fine, guide installed & updated RE: Sling - lhassell - 2020-02-14 (2020-02-04, 14:45)d21spike Wrote:I messaged the inputstream.adaptive coder and he sent this back. There's no hurry, but I thought you might be interested to know they made some changes.(2020-02-03, 23:04)clones Wrote:(2020-02-02, 19:38)clones Wrote: add the debug file to see if it can be figured out what this kodi crashes on this computer: https://pastebin.com/AWZrtWrbHi @d21spike wanted to check on the changes in the addon to see if it is working with some of the crashes (see debug log above), two of my systems, kodi crashes and shuts down after a few hours, and the other when playing live tv, is stopping every half hour (it appears the system is trying to upload the guide). If I can post another debug log let me know. https://github.com/peak3d/inputstream.adaptive/issues/199#issuecomment-586127690 I think he's referring to this commit: https://github.com/peak3d/inputstream.adaptive/commit/7d45e2bb0ec3affddebb87b44d945bfe9768d075 RE: Sling - z419 - 2020-02-18 Subtitles work for me when "Enable parsing for closed captions" is enabled in Player > Language settings. Though they seem to be disabled automatically, I think because the language is "Unknown", and have to be enabled every time you switch channels. Also, sometimes you have to wait for them to be detected, and sometimes it detects 2 subtitles but only 1 actually works. RE: Sling - RM4ever - 2020-02-21 Great Add-on But "NBC Sports Network" channel is missing for me, although i updated the channels multiple times. My Kodi version is: kodi-18.5-Leia-x64 |