aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-07-21 12:30:18 +0700
committerSergey M․ <dstftw@gmail.com>2018-07-21 12:30:18 +0700
commite9c671d5e86e43785382ae9cb20c8e7676c7c9bf (patch)
tree27cf0a3dbdf3ad03d76fc60e0a774d82a6be6dd0 /youtube_dl/utils.py
parentfd62b36680ff7d7bea789ac0031a33fc2d9270ad (diff)
[utils] Allow JSONP with empty func name (closes #17028)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 8c45166d7..b8700efcb 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -2282,7 +2282,7 @@ def parse_age_limit(s):
def strip_jsonp(code):
return re.sub(
r'''(?sx)^
- (?:window\.)?(?P<func_name>[a-zA-Z0-9_.$]+)
+ (?:window\.)?(?P<func_name>[a-zA-Z0-9_.$]*)
(?:\s*&&\s*(?P=func_name))?
\s*\(\s*(?P<callback_data>.*)\);?
\s*?(?://[^\n]*)*$''',