mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
Loosen tfa_results check
Can also return None as well as False, check for falsey values instead.
This commit is contained in:
parent
b6c9fe4162
commit
fc1282b3fe
@ -213,7 +213,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
|||||||
self._TFA_URL.format(tl), tfa_req,
|
self._TFA_URL.format(tl), tfa_req,
|
||||||
'Submitting TFA code', 'Unable to submit TFA code')
|
'Submitting TFA code', 'Unable to submit TFA code')
|
||||||
|
|
||||||
if tfa_results is False:
|
if not tfa_results:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
tfa_res = try_get(tfa_results, lambda x: x[0][5], list)
|
tfa_res = try_get(tfa_results, lambda x: x[0][5], list)
|
||||||
|
Loading…
Reference in New Issue
Block a user