Browse Source

[bilibili] Fix extraction for videos without backup_url (#10647)

totalwebcasting
Yen Chi Hsuan 8 years ago
parent
commit
86d68f906e
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      ChangeLog
  2. +1
    -1
      youtube_dl/extractor/bilibili.py

+ 1
- 0
ChangeLog View File

@ -1,6 +1,7 @@
version <unreleased> version <unreleased>
Extractors Extractors
* [bilibili] Fix extraction for specific videos (#10647)
+ [nbc] Add support for NBC Olympics (#10361) + [nbc] Add support for NBC Olympics (#10361)


+ 1
- 1
youtube_dl/extractor/bilibili.py View File

@ -67,7 +67,7 @@ class BiliBiliIE(InfoExtractor):
'url': durl['url'], 'url': durl['url'],
'filesize': int_or_none(durl['size']), 'filesize': int_or_none(durl['size']),
}] }]
for backup_url in durl['backup_url']:
for backup_url in durl.get('backup_url', []):
formats.append({ formats.append({
'url': backup_url, 'url': backup_url,
# backup URLs have lower priorities # backup URLs have lower priorities


Loading…
Cancel
Save