mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
get password from cli in youku.py
This commit is contained in:
parent
56efb0ba96
commit
5104e04438
@ -196,7 +196,9 @@ class Youku(VideoExtractor):
|
||||
if data.get('error'):
|
||||
if data['error']['code'] == -2002:
|
||||
self.password_protected = True
|
||||
self.password = input(log.sprint('Password: ', log.YELLOW))
|
||||
self.password = kwargs.get("password", None)
|
||||
if not self.password:
|
||||
self.password = input(log.sprint('Password: ', log.YELLOW))
|
||||
data = youku_ups(self.vid, password=self.password)['data']
|
||||
if data.get('error'):
|
||||
log.wtf(data['error']['note'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user