question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ABC iView - KeyError 'playlist'

See original GitHub issue

Checklist

  • I’m reporting a broken site support issue
  • I’ve verified that I’m running youtube-dl version 2021.04.17
  • I’ve checked that all provided URLs are alive and playable in a browser Can’t check, am UK based
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

C:\Plex\ffmpeg>youtube-dl -f best --verbose -o "%(series)s - %(title)s.%(ext)s" https://iview.abc.net.au/video/LE2031V010S00 --ffmpeg-location "C:\Temp\ffmpeg\ffmpeg\bin"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', '--verbose', '-o', '%(series)s - %(title)s.%(ext)s', 'https://iview.abc.net.au/video/LE2031V010S00', '--ffmpeg-location', 'C:\\Temp\\ffmpeg\\ffmpeg\\bin']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.04.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg git-2020-07-21-b5f1e05, ffprobe git-2020-07-21-b5f1e05
[debug] Proxy map: {}
[debug] Using fake IP 1.132.75.39 (AU) as X-Forwarded-For.
[abc.net.au:iview] LE2031V010S00: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('playlist',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\extractor\abc.py", line 135, in _real_extract
KeyError: 'playlist'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\extractor\abc.py", line 135, in _real_extract
KeyError: 'playlist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\YoutubeDL.py", line 827, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_5l7wxqx\build\youtube_dl\extractor\common.py", line 547, in extract
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('playlist',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

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

youtube-dl -f best --verbose -o "%(series)s - %(title)s.%(ext)s" https://iview.abc.net.au/video/LE2031V010S00 --ffmpeg-location "C:\Plex\ffmpeg\ffmpeg\bin"

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
archeliumcommented, Apr 22, 2021

Works if you VPN into Aussie. Just got the file.

Screen Shot 2021-04-22 at 3 01 29 PM
0reactions
dirkfcommented, May 10, 2022

The error means that no streams were listed in the programme JSON metadata. A statusMessage is typically present like this:

Some ABC iview programs are now available outside Australia. For the best international experience, download ABC Australia iview on your local Google Play or App Store.

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)
Read more comments on GitHub >

github_iconTop Results From Across the Web

What does this error code or error message mean?
This FAQ contains a list of error codes and error messages you may see when trying to watch ABC iview, or, when trying...
Read more >
ABC TV & iview
Stream now on ABC iview: ab.co/ABCin23 This is the official ABC TV + iview YouTube channel. Here you'll find a mix of trailers,...
Read more >
ABC TV & iview
ABC TV & iview. ABC TV & iview. 150K subscribers. Subscribe. ABC iview. Home. Videos. Shorts. Live. Playlists. Community. Channels.
Read more >
[abc.net.au:iview] extractor update required issue - Python 博客
yt-dlp --verbose "https://iview.abc.net.au/video/ZW3356A001S00" [debug] Command-line ... (caused by KeyError('playlist')); please report this issue on ...
Read more >
ABC iview goes virtual on Fetch
Sydney, 27 September 2021 - Fetch TV today announced that ABC iview will soon be available as a dedicated Virtual Playlist Channel on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found