0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

Fix utils.strip_jsonp

This commit is contained in:
Filippo Valsorda 2014-07-14 00:41:23 +02:00
parent 76233cda34
commit 816930c485

View file

@ -1428,7 +1428,7 @@ def compat_getpass(prompt, *args, **kwargs):
def strip_jsonp(code):
return re.sub(r'(?s)^[a-zA-Z0-9_]+\s*\(\s*(.*)\)\s*?\s*$', r'\1', code)
return re.sub(r'(?s)^[a-zA-Z0-9_]+\s*\(\s*(.*)\);?\s*?\s*$', r'\1', code)
def qualities(quality_ids):