]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bilibili] Fix extraction for videos without backup_url (#10647)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 14 Sep 2016 14:11:49 +0000 (22:11 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 14 Sep 2016 14:11:49 +0000 (22:11 +0800)
ChangeLog
youtube_dl/extractor/bilibili.py

index 46eea0626c4c37bd9a3b4e7495eef0f847cf8728..25c916eb2068a38f9bc12569a523def288ad3003 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
+* [bilibili] Fix extraction for specific videos (#10647)
 + [nbc] Add support for NBC Olympics (#10361)
 
 
index 9f5c12ab91a90e1da10f066423e173f8e4c92a4a..2d174e6f9a81da7412cd58ac316c7b5924dcde78 100644 (file)
@@ -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