diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-12-06 15:58:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 15:58:44 +0000 |
commit | 4bd2655398aed450456197a6767639114a24eac2 (patch) | |
tree | cfdd0be30bd016933f032fa7cfa93dd1071c1699 | |
parent | a95ee6d8803fca9157adecf63732ab58bf87fd88 (diff) |
[ie/youtube] Raise if `n` function returns input value (#11752)
Improve a95ee6d8803fca9157adecf63732ab58bf87fd88
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 2b026ef05..e69373ba2 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -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 |