-
Notifications
You must be signed in to change notification settings - Fork 20
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
improve streamservice #170
Conversation
Thanks, looks good and makes it easier to test the web-scraping code in unit tests. The only thing I do not like is the long try-except block, this is unneeded IMO, if the web-scraping fails, it fails early on. The other code should not be throwing an exception (and if it does, we need to know and handle it accordingly). |
I placed all html data-* attributes in the try-except block, because it's data we scrape from an html page. |
Well, the data-attributes won't fail (i.e. not return an exception), they will simply return None. |
Also, I would like to enable the Sporza stream by default, even if it currently only shows black. |
Gives an error:
|
I just found out myself! Great. Everything else looks fine, until it breaks differently ;-) PS What is your opinion to Radio support ? I'd like to know whether we can keep it as-is, or start a second project for this. |
* improve streamservice * Add different fail scenarios * Fix typos caused by online editing :-( * fixed log error * Add Sporza live stream
vualto_een
,vualto_canvas
,vualto_ketnet
andvualto_sporza
are deprecated video_id's since VRT geoblocks live streams. This was the main cause the previous commit was failing on hls streams.Other changes:
api_data
manipulations in_get_api_data
function