![]() |
CBC Sports "Stream Not Available" Error - 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: CBC Sports "Stream Not Available" Error (/showthread.php?tid=328282) |
RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-26 Please try it again by downloading the latest update. I found I added an extra \ in the Live Schedule URLs which would never have worked. This has been fixed now. Jeff RE: CBC Sports "Stream Not Available" Error - skyhigh69 - 2021-09-26 (2021-09-26, 14:00)jbinkley60 Wrote: Please try it again by downloading the latest update. I found I added an extra \ in the Live Schedule URLs which would never have worked. This has been fixed now.Tested on Windows Matrix, plugin.video.cbc-sports-main v0.0.99, updated this morning. Ok live stream at 08:35 (BMX Mens Final) I can try.. Stream not Available!! checked cbc website and the stream is running and I am in Canada. The capture link works fine: Code: https://cbcsportshd1-f.akamaihd.net/i/cbcsports_2@31187/master.m3u8 ![]() RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-26 (2021-09-26, 14:36)skyhigh69 Wrote:(2021-09-26, 14:00)jbinkley60 Wrote: Please try it again by downloading the latest update. I found I added an extra \ in the Live Schedule URLs which would never have worked. This has been fixed now.Tested on Windows Matrix, plugin.video.cbc-sports-main v0.0.99, updated this morning. Thanks. That is the type of link I would expect to get to play a live stream. There is likely a referrer URL which aligns to the JSON URL /1.6185050 which is what we will need to find. We may be able to find it with a browser. What browser are you using ? Jeff RE: CBC Sports "Stream Not Available" Error - skyhigh69 - 2021-09-26 (2021-09-26, 15:03)jbinkley60 Wrote:(2021-09-26, 14:36)skyhigh69 Wrote:(2021-09-26, 14:00)jbinkley60 Wrote: Please try it again by downloading the latest update. I found I added an extra \ in the Live Schedule URLs which would never have worked. This has been fixed now.Tested on Windows Matrix, plugin.video.cbc-sports-main v0.0.99, updated this morning. That will be above my pay grade lol. But I have Chrome. RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-26 Interesting that I was getting two different errors on different streams. One was "Connection Timed out" and the other was "Stream Not Available" I have most of the browsers running on my PC RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-27 I've done some more digging through the addon code and see where it is parsing the HTML 5 response from CBC Sports to get the underlying URL for the live stream. I suspect the base URL has changed or similar. I'll need to instrument this section of code a bit more to see the return URL and the manipulated URL which is being called to play the video. I might be able to figure it out based upon that. Give me a few days to work on this when I get some time. Jeff RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-27 (2021-09-27, 11:42)jbinkley60 Wrote: Give me a few days to work on this when I get some time.Ok, thanks. Looking forward to the completion of this addon and always willing to help where I can. RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-27 Unfortunately I can't test this until October 2nd or sometime closer than now. The next Live Schedule event with a URL is the HSBC World Rugby Sevens event and that page isn't available yet for me to test: https://www.cbc.ca/1.6163573 Once they post this web page I can check the parsing. Jeff RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-27 There are figure skating events on the 29th 30 and Oct 1 https://www.cbc.ca/player/sports/live RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-27 You are right that there is but the JSON link that CBC Sports publishes for their API doesn't have the URL yet for those events other than just sports. schedule 0 stt"09/29/2021 11:00 EDT" end"09/29/2021 22:20 EDT" ti"Skate Ontario Sectional Series September Hub Event: DAY 1" url"/sports" on 0"web" typ 0"figure skating" nb"" thumb"http://i.cbc.ca/1.470240!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_300/default-headline-image-sports.jpg" 1 stt"09/30/2021 08:30 EDT" end"09/30/2021 22:25 EDT" ti"Skate Ontario Sectional Series September Hub Event: DAY 2" url"/sports" on 0"web" typ 0"figure skating" nb"" thumb"http://i.cbc.ca/1.470240!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_300/default-headline-image-sports.jpg" 2 stt"10/01/2021 08:30 EDT" end"10/01/2021 22:40 EDT" ti"Skate Ontario Sectional Series September Hub Event: DAY 3" url"/sports" on 0"web" typ 0"figure skating" nb"" thumb"http://i.cbc.ca/1.470240!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_300/default-headline-image-sports.jpg" 3 stt"10/02/2021 08:30 EDT" end"10/02/2021 22:45 EDT" ti"Skate Ontario Sectional Series September Hub Event: DAY 4" url"/sports" on 0"web" typ 0"figure skating" nb"" thumb"http://i.cbc.ca/1.470240!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_300/default-headline-image-sports.jpg" 4 stt"10/02/2021 14:00 EDT" end"10/02/2021 15:00 EDT" ti"HSBC World Rugby Sevens: Edmonton - Final" url"/1.6163573" on 0"web" 1"tv" typ 0"rugby" nb"" I am going to need to pick apart the code more to see if it can actually parse the HTML 5 like that or not. Most other APIs I have seen provide a more specific URL for a video link.. Jeff RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-29 Will post this to see if it is helpful or not. I'm at the website watching the Live stream of "2021 Skate Ontario Sectional Series September Hub Event on CBC: DAY 1" Every time I stop the stream and then click the play button again it goes back to the same spot where it started. It doesn't restart where it should if it were live. The addon is giving the "Stream Not Available Error" RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-30 So I've made some progress. They did post a URL for this skating event: http://www.cbc.ca/1.6190732 which takes us to the correct page. Looking through the code I see where the HTML parsing is failing. It looks like CBC Sports made some changes which is why the parsing is failing. Here's where the code is failing: data = get_html(url) try: mediaId = re.compile("mediaId': '(.+?)'").findall(str(data))[0] <--- faiils here except IndexError: xbmcgui.Dialog().notification(name, translation(30000), defaultimage, 5000, False) return furl = basefeed + mediaId The good news is that I was able to hard code the mediaId variable and was able to get the video. I upload a version with this hard coded to see if others can play the event. I should be able to fix this parsing. Jeff RE: CBC Sports "Stream Not Available" Error - jbinkley60 - 2021-09-30 Ok. I was able to put in a bit of a hack for parsing out the mediaId variable and it appears to work. We'll need to test across a few events. Please give it a shot. Jeff RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-30 Getting closer, I am able to open the event but am not getting a video possibly because they are in a commercial filler break and the next event for the day hasn't started (I think it might be restarting at 810 pm EST). I will recheck then (about 10 min from now) Here is what I am seeing Can you post the link in your posts so others can know where it is and test it as well, thanks RE: CBC Sports "Stream Not Available" Error - barney63 - 2021-09-30 HOUSTON, WE HAVE LIFTOFF! It is now playing the commercial filler break! Just can't thank you enough for sticking with this, I get the feeling that this could be one of those addons that may need some TLC, hope you will stay on the case. Thanks again |