-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2021 API Update #44
Comments
Unfortunately, it seems that the new API doesn't contain any generic functions for retrieving seasons/events/sessions. Or at least, I haven't been able to find them. Instead, the API is now used to retrieve the actual layout of the website. For example this page: Uses the following API call to get the contents of the page: This returns a JSON structure with all kinds of headers, titles, subtitles, links that are used to render the page. Eventually you end up with a contentId that can be used to generate a tokenized stream URL. |
@robvdpol Unfortunately, can confirm..... The closest I got was Which is by no means perfect because, even with 2021 set, if you set |
Here is all the digging into the API I've achieved so far today. @robvdpol @leonardoxh and @SoMuchForSubtlety may all find this useful. |
Yeah, I noticed this too I've not worked out how you're supposed to step past 100; I guess you just don't :/ worth noting the |
Someone is doing Python work here: https://github.com/kodosexe/F1Hub Not sure if it's useful, but I wanted to pass it along. |
AppleTV app using new API: https://github.com/NoahFetz/F1AppleTV |
Seems to still be using the old API |
It would be interesting to investigate what API the android app uses. I wouldn't be surprised it that still uses the old API. |
Yeah, I think that will make it easier - whenever they update the app..... I've not received one yet. |
It's due in the first half of the season, so don't get too excited ha... |
I've managed to find some better API calls to make tools for the new API. I've got it all in this mostly proof-of-concept level tool here: https://github.com/TheDevFreak/pyF1Viewer This may be especially interesting to @SoMuchForSubtlety |
I just released an updated version of Race Control with support for the new API, might be interesting to you guys as well. Most of it works, still struggling a bit with the video on demand archive. |
Thanks everyone for feedback already - it’s really appreciated!! MATRIX SupportThanks to @joeyberkovitz (#47), the old caching has now been removed an replaced with a more „generic“ approach, which was a major issue with Leia- Matrix Transition. This can be tested with branch Matrix_Support. After some minor adjustments this will probably be part of the release. New API (2.0)@TheDevFreak put huge efforts in reverse engineering the new API. |
I upgraded to Kodi 19 (Matrix) yesterday and found out the version I had installed 0.1.7 did not work any longer. The plugin is able to start, however directly gives me a |
If you install the Matrix_Support version now to your Kodi install you will be able to watch the current live event, being served from the new API (50fps!). There is currently no functionality for anything else (replays, etc) |
Awesome! Authentication issue is resolved. I can indeed watch the pre-session live. It seems to load also quicker then in the previous version. Nice! |
By the way I took a look at the android app, and it's still using the old API for everything. |
Big thanks to all the contributors for getting this usable in time! 50fps is a huge improvement. So far, what works runs flawlessly. |
Is it possible to install this addon on Kodi 18.x? Thank you for our answer. |
The problem with supporting Leia (18.x) is, that due to the changes in F1TVs API, the player in Leia is not able to correctly parse the live stream m3u8. The addon itself does not have any dependencies for Matrix. |
Thank you very much for clarification. |
This comment has been minimized.
This comment has been minimized.
Here we go: https://github.com/bbsan2k/plugin.video.f1tv/releases/tag/0.1.99 This should work with the current API and also display Live if possible Edit: FIxed Live: https://github.com/bbsan2k/plugin.video.f1tv/releases/tag/0.1.100 |
Thank you, it's working well with 0.1.100 |
I just tried it with this week-end Grand Prix and it worked beautifully. 1080p@50Hz, no hickups. |
Fantastic job - thanks for resolving this 🥇 Is there an updated repo so that updates can be pulled automatically? https://bbsan2k.github.io/repository.f1tv/repo/ does not work on Matrix anymore. |
Investigate the new API.
We need to know:
The text was updated successfully, but these errors were encountered: