From: Filippo Valsorda Date: Sun, 13 Jul 2014 22:41:23 +0000 (+0200) Subject: Fix utils.strip_jsonp X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=816930c4850428811d368aa538235433536bb342;p=youtube-dl Fix utils.strip_jsonp --- diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index a2890b764..64a9618ca 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1428,7 +1428,7 @@ US_RATINGS = { 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):