[ie/youtube] Raise if `n` function returns input value (#11752)

Improve a95ee6d880

Authored by: bashonly
pull/11756/head
bashonly 2024-12-06 15:58:44 +00:00 zatwierdzone przez GitHub
rodzic a95ee6d880
commit 4bd2655398
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3280,7 +3280,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
except Exception as e:
raise JSInterpreter.Exception(traceback.format_exc(), cause=e)
if ret.startswith('enhanced_except_') or ret.endswith(f'_w8_{s}'):
if ret.startswith('enhanced_except_') or ret.endswith(s):
raise JSInterpreter.Exception('Signature function returned an exception')
return ret