-
Notifications
You must be signed in to change notification settings - Fork 15
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
Script can't find a video that is on ruv.is #34
Comments
It seems that the switch from The only complete list endpoint I could find now was |
Thank you for the analysis Andri, it is correct that the API endpoint I migrated the service to doesn't have all of the entries available. I will have a look at leveraging the /programs/all endpoint |
So did a bit more research. Changing the api endpoints is trivial you simply have to modify all_panel_data= api_data['panels'] if 'panels' in api_data else None
data = []
# Combine all
for panel_data in all_panel_data:
if 'programs' in panel_data:
data.extend(panel_data['programs']) to this data = []
for entry in api_data:
if entry['format'] == 'tv':
data.append(entry) No other changes really needed. Which brings me to the bigger issue. Data inconsistency. Looking around at other RÚV related utilities here on github and cursory analysis on ruv.is, it looks like the new way of doing things is to query RÚV's GraphQL via |
I can't download 32209, 9j5d0j. It says "Nothing found to download". The script also can't "find" it.
https://www.ruv.is/sjonvarp/spila/songvakeppnin-2022/32209/9j5d0j
The text was updated successfully, but these errors were encountered: