mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
[bilibili] warn if cookies are not loaded
This commit is contained in:
parent
35182d6a29
commit
2ba7493f12
@ -224,6 +224,10 @@ class Bilibili(VideoExtractor):
|
|||||||
if 'videoData' in initial_state:
|
if 'videoData' in initial_state:
|
||||||
# (standard video)
|
# (standard video)
|
||||||
|
|
||||||
|
# warn if cookies are not loaded
|
||||||
|
if cookies is None:
|
||||||
|
log.w('You will need login cookies for 720p formats or above. (use --cookies to load cookies.txt.)')
|
||||||
|
|
||||||
# warn if it is a multi-part video
|
# warn if it is a multi-part video
|
||||||
pn = initial_state['videoData']['videos']
|
pn = initial_state['videoData']['videos']
|
||||||
if pn > 1 and not kwargs.get('playlist'):
|
if pn > 1 and not kwargs.get('playlist'):
|
||||||
|
Loading…
Reference in New Issue
Block a user