diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2014-07-14 00:41:23 +0200 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2014-07-14 00:41:23 +0200 |
commit | 816930c4850428811d368aa538235433536bb342 (patch) | |
tree | f51707014d3c95a5a01779c049ffb4620f4ffb4b /youtube_dl/utils.py | |
parent | 76233cda34a3795b405cd0b2ded14fc38930263f (diff) |
Fix utils.strip_jsonp
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
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): |