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
ABC iView - KeyError 'playlist' #28823
Comments
"youtube-dl https://iview.abc.net.au/video/LE2031V010S00" is working fine for me here in Australia. The format you gave also works fine. |
Just tried it again, still reporting the same error. |
I didn't even know iview had stopped geoblocking until I read your post & looked it up! Do you know anyone living outside of Australia you could ask to check? To make sure the issue is iview and not your end. The other possibility is that for licensing reasons, some shows may still be geoblocked, including Hard Quiz. Maybe you should try, say, an issue of ABC news? |
Both cause the same error |
Only other thing I can suggest is to see if someone else outside of Aus gets the same error. |
`youtube-dl --verbose https://iview.abc.net.au/video/NEWS202113313494 During handling of the above exception, another exception occurred: Traceback (most recent call last): Outside of Australia. |
I'm based in the US and see this error too. The strange thing is that I can actually watch this video from my browser without any VPN enabled, but youtube-dl can't download it, regardless of whether I'm on a VPN or not.
|
Same errors still from US. |
Try yt-dlp and see if that works. I tried: |
The error means that no streams were listed in the programme JSON metadata. A
A better UX would be to trap the error: try:
stream = next(s for s in video_params['playlist'] if s.get('type') in ('program', 'livestream'))
except (StopIteration, TypeError, KeyError) as e:
if 'Some ABC iview programs are now available outside Australia' in video_params.get('statusMessage', ''):
self.raise_geo_restricted(countries=self._GEO_COUNTRIES)
raise ExtractorError('No streams found', cause=e, video_id=video_id) |
Checklist
Verbose log
Description
Downloading from ABC iView was working 5/4/21
Currently not working - Trying to download from the UK
Have attempted multiple shows with the same error
Downloading from YouTube is fine
Tried downloading from iView with an older version of youtube-dl, also updated to the latest version, same error
Have previously used this format with iView and had success
The text was updated successfully, but these errors were encountered: