projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1434184
)
[bilibili] Skip assertion if HQ videos not available
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 26 May 2015 20:14:24 +0000
(
04:14
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 26 May 2015 20:14:24 +0000
(
04:14
+0800)
youtube_dl/extractor/bilibili.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bilibili.py
b/youtube_dl/extractor/bilibili.py
index 7ca835e31f3477f8e46c74804aea36ecfe789686..a8bea2c10f36c264a168a33aaae59634e6b930eb 100644
(file)
--- a/
youtube_dl/extractor/bilibili.py
+++ b/
youtube_dl/extractor/bilibili.py
@@
-80,9
+80,11
@@
class BiliBiliIE(InfoExtractor):
note='Downloading HQ video info',
fatal=False,
)
- hq_durls = hq_doc.findall('./durl') if hq_doc is not False else itertools.repeat(None)
-
- assert len(lq_durls) == len(hq_durls)
+ if hq_doc is not False:
+ hq_durls = hq_doc.findall('./durl')
+ assert len(lq_durls) == len(hq_durls)
+ else:
+ hq_durls = itertools.repeat(None)
i = 1
for lq_durl, hq_durl in zip(lq_durls, hq_durls):