aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2014-07-14 00:41:23 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2014-07-14 00:41:23 +0200
commit816930c4850428811d368aa538235433536bb342 (patch)
treef51707014d3c95a5a01779c049ffb4620f4ffb4b /youtube_dl
parent76233cda34a3795b405cd0b2ded14fc38930263f (diff)
Fix utils.strip_jsonp
Diffstat (limited to 'youtube_dl')
-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 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):