diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-11-13 16:28:05 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-11-13 16:28:05 +0100 |
commit | 609a61e3e6fffce3d45e845f33ae2c5fa2d432ac (patch) | |
tree | b602c3d87ff8d9f04edaa9f1e258fa58a3aace91 /youtube_dl/utils.py | |
parent | bf951c5e29548cfed80480389762edd29fcc8825 (diff) |
[npo] Improve npo.nl (Fixes #4173)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 0b2ba39e2..5786fa699 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1331,7 +1331,8 @@ def parse_age_limit(s): 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*?(?://[^\n]*)*$', r'\1', code) def js_to_json(code): |