• 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18
  • 19
CBC Sports "Stream Not Available" Error
(2021-12-01, 04:17)jbinkley60 Wrote: If folks are having an issue displaying Live Events right now on the CBC Sports website the issue is a bad time format coming from CBC for the first Live Event in the list.  It is a typo on their website.  The end time for the first event is missing a colon in the time. 

stt"12/01/2021 11:15 EST"
end"12/01/2021 1730 EST"

stt is the start time and end is the end time.  You can see the missing colon.


I've added a check / fix for it in version 1.0.2f .  This is a test release but addresses the issue.  The fix will be rolled into the 1.0.2 production release.


Thanks,

Jeff

Just like the CBC to throw another wrench into the works... Wink
Kodi Nexus (20.2) on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix (19.3) on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Roku Channel | LG Channels | Xumo Play | DistroTV | Local Now | NHL Radio | Weather Unlocked
Reply
One thing about the CBC, they put up all their stuff for streaming for free, unlike the two other networks where you need a cable subscription to get streamed what you can get over the air, if you're not too far from the transmitter.

Also I think the CBC Sports streaming section is kind of a quiet little secret.  I can't think of too many other sources where such a large array of world sporting events can be seen for free, legally.
Reply
(2021-12-01, 15:46)MetalChris Wrote:
(2021-12-01, 04:17)jbinkley60 Wrote: If folks are having an issue displaying Live Events right now on the CBC Sports website the issue is a bad time format coming from CBC for the first Live Event in the list.  It is a typo on their website.  The end time for the first event is missing a colon in the time. 

stt"12/01/2021 11:15 EST"
end"12/01/2021 1730 EST"

stt is the start time and end is the end time.  You can see the missing colon.


I've added a check / fix for it in version 1.0.2f .  This is a test release but addresses the issue.  The fix will be rolled into the 1.0.2 production release.


Thanks,

Jeff

Just like the CBC to throw another wrench into the works... Wink

Yea, I am not going to write a parser for every potential time format mismatch.  I am going to do a couple of basic checks and then try to error out and skip an event if the time format is too mangled.  One thing I've been struggling to find is a way for Python to catch an exception like this:

2021-12-01 07:32:18.681 T:57284   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ValueError'>
                                                   Error Contents: time data '12/01/2021 1730 ' does not match format '%m/%d/%Y %H:%M'
                                                   Traceback (most recent call last):
                                                     File "C:\Users\Audio1\AppData\Roaming\Kodi\addons\plugin.video.cbc-sports\addon.py", line 93, in INDEX
                                                       starttime = datetime.strptime(etime[:16],'%m/%d/%Y %H:%M')
                                                   TypeError: 'NoneType' object is not callable

A typical Python Try / Except won't catch it.  Everything I found online said fix the time format.  Duhhh, if I could control that I wouldn't have to account for a formatting error  Smile   Do you know any tricks ?  For now I am going to check that the slashes and colon are in the right place and the string is 20 characters long.  Beyond that I am not sure how bad they could butcher it up.


Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
(2021-12-01, 16:29)barney63 Wrote: One thing about the CBC, they put up all their stuff for streaming for free, unlike the two other networks where you need a cable subscription to get streamed what you can get over the air, if you're not too far from the transmitter.

Also I think the CBC Sports streaming section is kind of a quiet little secret.  I can't think of two many other sources where such a large array of world sporting events can be seen for free, legally.

Absolutely. That's one of the reasons why I went for this one when I had full access to Canadian sites.

(2021-12-01, 17:24)jbinkley60 Wrote: A typical Python Try / Except won't catch it.  Everything I found online said fix the time format.  Duhhh, if I could control that I wouldn't have to account for a formatting error  Smile   Do you know any tricks ?  For now I am going to check that the slashes and colon are in the right place and the string is 20 characters long.  Beyond that I am not sure how bad they could butcher it up.


Jeff

My first thought after Try /Except, was to check for string length, but you're already going that route and checking for slashes and colon. I can't think of anything simpler that would work better than that. I've found that working with time in Python can be a real pain sometimes, and I've struggled with it so much that I try to avoid it whenever possible. It would certainly be easier if they offered a Unix timestamp in the API.
Kodi Nexus (20.2) on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix (19.3) on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Roku Channel | LG Channels | Xumo Play | DistroTV | Local Now | NHL Radio | Weather Unlocked
Reply
(2021-12-01, 18:45)MetalChris Wrote:
(2021-12-01, 16:29)barney63 Wrote: One thing about the CBC, they put up all their stuff for streaming for free, unlike the two other networks where you need a cable subscription to get streamed what you can get over the air, if you're not too far from the transmitter.

Also I think the CBC Sports streaming section is kind of a quiet little secret.  I can't think of two many other sources where such a large array of world sporting events can be seen for free, legally.

Absolutely. That's one of the reasons why I went for this one when I had full access to Canadian sites.
(2021-12-01, 17:24)jbinkley60 Wrote: A typical Python Try / Except won't catch it.  Everything I found online said fix the time format.  Duhhh, if I could control that I wouldn't have to account for a formatting error  Smile   Do you know any tricks ?  For now I am going to check that the slashes and colon are in the right place and the string is 20 characters long.  Beyond that I am not sure how bad they could butcher it up.


Jeff

My first thought after Try /Except, was to check for string length, but you're already going that route and checking for slashes and colon. I can't think of anything simpler that would work better than that. I've found that working with time in Python can be a real pain sometimes, and I've struggled with it so much that I try to avoid it whenever possible. It would certainly be easier if they offered a Unix timestamp in the API.

Thanks.  I'll leave it as is.  I noticed that the CBC Sports website fixed the typo some time today.


Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
Version 1.0.2 of this addon for Kodi Matrix and higher has finally made it to the official Kodi repository via pull request 3813 .   I would suggest folks upgrade to this version via the Kodi addon update process or you can directly download v1.0.2 here.  Future updates will be pushed out through the Kodi repository.

Please let me know if you experience any issues with this version.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
A test version 1.0.3 of this addon, 1.0.3b, is available.  It has the following changes:
  • Extends the limit for Archives to 500, which is the CBC website limit.
  • Fixes another CBC Sports website data error where they entered a date / time as:  02/26/2022 25:00   Oops Smile
After sufficient testing, I'll post this to the Kodi repository.  My thanks again to Barney63 for finding the issue and recommending the limit change.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
Have to say to any Canadians out there and anybody else: CBC Sports (jbinkley60), CBC (micahg) and CBC Olympics (fourpointsix) are among the best addons here.  If you haven't already installed them you should.
Reply
Version 1.0.4 of this addon, has been submitted and accepted to the Kodi repository 

It has the following changes:
  • Extends the limit for Archives to 500, which is the CBC website limit.
  • Fixes another CBC Sports website data error where they entered a date / time as:  02/26/2022 25:00   Oops

You can download this release here or wait for the Kodi repository update.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
@jbinkley60

Hey Jeff, if you're out there can you have a look at the Live Schedule menu of the CBC Sports addon.  It is getting the generic Check the Log error.

All the other menus (Most Recent, Highlights, Archive) are working fine.

Thanks
Reply
(2022-08-22, 08:00)barney63 Wrote: @jbinkley60

Hey Jeff, if you're out there can you have a look at the Live Schedule menu of the CBC Sports addon.  It is getting the generic Check the Log error.

All the other menus (Most Recent, Highlights, Archive) are working fine.

Thanks

Sorry for the delay on this one.  I didn't see the message here.  I have fixed this issue in v1.0.5 of the addon and just pushed a pull request to the Kodi repo.  If you want to pull v1.0.5 faster than waiting on the Kodi repo update, you can grab it here.   I've taken a more generic approach with these CBC Sports website timestamp issues where they improperly format the timestamps.  Instead of fixing each one, now if one is formatted wrong I just ignore it and that particular live event won't show up in the list until they fix it.  The rest of the live event items will continue to display.

I have also subscribed to this thread now so I won't miss future messages. 


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
Addon working again, thanks Jeff.  I would encourage anyone who likes sports to try this addon.  While many events are geoblocked to Canada some aren't and AFAIK this is the best place to see world championship events in most of the mainstream sports, free and legal.  Thanks again Jeff (and MetalChris for starting it) for your work on this great addon.
Reply
(2022-08-27, 20:20)barney63 Wrote: Addon working again, thanks Jeff.  I would encourage anyone who likes sports to try this addon.  While many events are geoblocked to Canada some aren't and AFAIK this is the best place to see world championship events in most of the mainstream sports, free and legal.  Thanks again Jeff (and MetalChris for starting it) for your work on this great addon.

Thanks for the confirmation of the fix.  The Kodi Pull request was just approved so v1.0.5 will soon be available via the Kodi Repository.  I will soon start testing this addon with Kodi 20, Nexus.  I just finished testing another major addon and I don't believe there is anything in Nexus which will break this addon but there is a new screen rendering method being introduced for lists that I will begin to incorporate into the next release of this addon.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
@jbinkley60

Hey Jeff, if you're out there can you have a look at the Archive menu of the CBC Sports addon.  It is empty
The other menus (Most Recent, Highlights) are working fine.

Thanks
Reply
(2023-05-24, 14:18)barney63 Wrote: @jbinkley60

Hey Jeff, if you're out there can you have a look at the Archive menu of the CBC Sports addon.  It is empty
The other menus (Most Recent, Highlights) are working fine.

Thanks

I took a quick look and the addon isn't throwing any exception errors so I'll need to dig a bit deeper to see what has changed on the source side.  I may not be able to get to this till tomorrow afternoon or Friday.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
  • 1
  • 14
  • 15
  • 16(current)
  • 17
  • 18
  • 19

Logout Mark Read Team Forum Stats Members Help
CBC Sports "Stream Not Available" Error0