Posts: 799
Joined: May 2019
Reputation:
27
Everything appears to be working the same as you described above.
Are you under the impression that clicking on an event in the Live Schedule will play the event or is it a schedule only? I'm not sure if that part worked before, going back in the thread it is unclear to me. It would be great if it worked because there are some really good live events there and I don't know if they'll ever show up in the other menus ie Archive.
The old addon in Kodi 18 also only brought up 10 results which seems strange to me that all three menus only allow 10 results, if there are more available. Live Schedule does bring up 60+ results
Posts: 1,936
Joined: Oct 2015
Reputation:
215
I checked the CBC Sports URL and for Highlights, Most Recent and Archive it is only returning 10 records. There may be an API call to ask for more but I'll save that for another time to research. I'll try and keep an eye out for the Live Schedule and whether you can play them at the indicated time. If so, I could add an option where it would popup a reminder ahead of the event to remind you. I've got some similar code in another addon which might be usable. It would be a little bit of work.
Jeff
Posts: 799
Joined: May 2019
Reputation:
27
The Live Schedule events don't seem to be working. They are giving a "Connection Timed Out Please Try Again" error
Posts: 1,936
Joined: Oct 2015
Reputation:
215
2021-09-25, 21:05
(This post was last modified: 2021-09-25, 21:06 by jbinkley60.)
Does Live Schedule work on the Kodi 18 version of the addon ?
Jeff
Posts: 799
Joined: May 2019
Reputation:
27
Not sure how this works but they have two rugby events marked "Live" at the website. One is a men's game and the other is a women's game both at the same stadium. One (or both) are not "Live"
Posts: 1,936
Joined: Oct 2015
Reputation:
215
So I took a look at the JSON response from the CBC Sports website. This is the data which is used to populate the Live Schedule. In many cases there is no URL information for the event coming from CBC Sports and in others cases there is a URL which gets appended to the CBC Sports URL to create the URL you click on to play the event. What would be helpful is is someone could provide a real URL that works (playing directly from the CBC website) that corresponds to an event in the Live Schedule. I could then compare the differences in the URLs and maybe fix this.
Here's the JSON response for 3 events so you can see what is coming back from CBC Sports:
schedule
0
stt"09/26/2021 06:45 EDT"
end"09/26/2021 07:30 EDT"
ti"2021 Barcelona Extreme: Scooter World Championships - Women's Park Final"
url"/1.6185050"
on
0"web"
typ
0"other sports"
nb""
thumb"https://i.cbc.ca/1.6185181.1632321302!/httpImage/image.jpeg_gen/derivatives/16x9_300/image.jpeg"
1
stt"09/26/2021 08:35 EDT"
end"09/26/2021 09:35 EDT"
ti"2021 Barcelona Extreme: BMX Men's Park Final"
url"/1.6185050"
on
0"web"
typ
0"cycling-bmx"
nb""
thumb"https://i.cbc.ca/1.6185181.1632321302!/httpImage/image.jpeg_gen/derivatives/16x9_300/image.jpeg"
2
stt"09/26/2021 09:45 EDT"
end"09/26/2021 10:35 EDT"
ti"2021 Barcelona Extreme: Scooter World Championships - Men's Park Final"
url"/1.6185050"
on
0"web"
typ
0"other sports"
nb""
thumb"https://i.cbc.ca/1.6185181.1632321302!/httpImage/image.jpeg_gen/derivatives/16x9_300/image.jpeg"
Jeff
Posts: 1,936
Joined: Oct 2015
Reputation:
215
I did some more digging and may have fixed it. I am now getting a stream not available error but I am in the US. Please download the latest version and give it a shot during a live event.
Jeff
Posts: 799
Joined: May 2019
Reputation:
27
2021-09-26, 13:21
(This post was last modified: 2021-09-26, 13:23 by barney63.)
As of this moment there is only one live stream
2021 Barcelona Extreme on CBC: Scooter World Championships - Women's Park Final
I am able to play it from the website but am getting a "Stream Not Available" error in the addon (after updating addon) I am in Canada, just to be clear
Posts: 1,936
Joined: Oct 2015
Reputation:
215
Thanks. I suspected as much but was hoping I might have gotten lucky. The challenge here is finding the underlying URL to add to the JSON responses (i.e. /1.6185050 ) to create a full URL for the Kodi player. I don't think the answer is in the code. I may have to search the web and hope someone else has provided the solution.
Jeff
Posts: 799
Joined: May 2019
Reputation:
27
Thanks for all your effort, I'll stay with it as long as you do. There won't be any live events for a few hours so I'll be away from the computer. I get the feeling you're close, everything (even the error) seems quite smooth.