diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-03-24 23:21:20 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-03-24 23:21:20 +0100 |
commit | fac55558ad55344d72cf66033e5f2d2076b2f8cb (patch) | |
tree | 30c2f3daf930009e15cce4144e9b9920be36bf5b /youtube_dl/utils.py | |
parent | 7a249480b47767dcd5b872563fd715afd01f777a (diff) |
[washingtonpost] Add extractor (Fixes #2622)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index fd03b0d7c..29c9b1a4c 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1328,3 +1328,7 @@ US_RATINGS = { 'R': 16, 'NC': 18, } + + +def strip_jsonp(code): + return re.sub(r'(?s)^[a-zA-Z_]+\s*\(\s*(.*)\);\s*?\s*$', r'\1', code) |