aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bilibili.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-09-14 22:11:49 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-09-14 22:11:49 +0800
commit86d68f906e21a6674f9f8676b22a47414b6c9fd2 (patch)
tree73a582a9113ee44de3e13da3f9295dc820f08e1d /youtube_dl/extractor/bilibili.py
parent4875ff68476ff7de9733c80effb652fc6ab07ea0 (diff)
[bilibili] Fix extraction for videos without backup_url (#10647)
Diffstat (limited to 'youtube_dl/extractor/bilibili.py')
-rw-r--r--youtube_dl/extractor/bilibili.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py
index 9f5c12ab9..2d174e6f9 100644
--- a/youtube_dl/extractor/bilibili.py
+++ b/youtube_dl/extractor/bilibili.py
@@ -67,7 +67,7 @@ class BiliBiliIE(InfoExtractor):
'url': durl['url'],
'filesize': int_or_none(durl['size']),
}]
- for backup_url in durl['backup_url']:
+ for backup_url in durl.get('backup_url', []):
formats.append({
'url': backup_url,
# backup URLs have lower priorities