yt-dlp/youtube_dlc
Nicolas SAPA 8263104fe4 [youtube] Fix 'liveChatReplayContinuationData' missing 'continuation' key
live_chat_continuation['continuations'][0]['liveChatReplayContinuationData']['continuation'] can not exist.
So catch the KeyError.

Traceback:
$ tubeup 'https://youtube.com/watch?v=JyE9OF03cao'
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.10.25
[debug] Python version 3.7.3 (CPython) - Linux-5.8.0-0.bpo.2-amd64-x86_64-with-debian-10.6
[debug] exe versions: ffmpeg 3.3.9, ffprobe 3.3.9
[debug] Proxy map: {}
There are no annotations to write.
[download] 452.59KiB at 615.35KiB/s (00:01)ERROR: 'liveChatReplayContinuationData'
Traceback (most recent call last):
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 846, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 901, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1696, in process_video_result
    self.process_info(new_info)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1894, in process_info
    dl(sub_filename, sub_info, subtitle=True)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/YoutubeDL.py", line 1866, in dl
    return fd.download(name, info, subtitle)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/downloader/common.py", line 375, in download
    return self.real_download(filename, info_dict)
  File "/mnt/data2/Backup/Wiki/.local/lib/python3.7/site-packages/youtube_dlc/downloader/youtube_live_chat.py", line 85, in real_download
    continuation_id = live_chat_continuation['continuations'][0]['liveChatReplayContinuationData']['continuation']
KeyError: 'liveChatReplayContinuationData'
2020-11-08 08:49:03 +01:00
..
downloader [youtube] Fix 'liveChatReplayContinuationData' missing 'continuation' key 2020-11-08 08:49:03 +01:00
extractor [mailru] removed escaped braces, use urljoin, added tests 2020-11-05 20:52:28 +01:00
postprocessor Don't try to embed/convert json subtitles generated by youtube livechat 2020-11-05 01:47:52 +05:30
YoutubeDL.py flake8. added sha256 check to updater. 2020-10-31 08:57:55 +01:00
__init__.py [core] add option to trim file name length with integer 2020-09-30 05:50:09 +02:00
__main__.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
aes.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
cache.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
compat.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
jsinterp.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
options.py [core] sleep-subtitles fix 2020-11-01 03:36:16 +01:00
socks.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
swfinterp.py [skip travis] renaming 2020-09-02 20:25:25 +02:00
update.py flake8. added sha256 check to updater. 2020-10-31 08:57:55 +01:00
utils.py [skip travis] templates and urls 2020-10-31 09:26:04 +01:00
version.py next release: 2020.10.26 2020-10-26 04:34:25 +01:00