projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42f413
)
[deezer] Fix extraction (Closes #9086)
author
Sergey M․
<dstftw@gmail.com>
Tue, 5 Apr 2016 16:27:33 +0000
(22:27 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 5 Apr 2016 16:27:33 +0000
(22:27 +0600)
youtube_dl/extractor/deezer.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/deezer.py
b/youtube_dl/extractor/deezer.py
index c3205ff5fc243c069494e9d50f3522299ea84d34..7a07f3267db874649e5bcc5228a1c7881ebe19d3 100644
(file)
--- a/
youtube_dl/extractor/deezer.py
+++ b/
youtube_dl/extractor/deezer.py
@@
-41,7
+41,9
@@
class DeezerPlaylistIE(InfoExtractor):
'Deezer said: %s' % geoblocking_msg, expected=True)
data_json = self._search_regex(
- r'naboo\.display\(\'[^\']+\',\s*(.*?)\);\n', webpage, 'data JSON')
+ (r'__DZR_APP_STATE__\s*=\s*({.+?})\s*</script>',
+ r'naboo\.display\(\'[^\']+\',\s*(.*?)\);\n'),
+ webpage, 'data JSON')
data = json.loads(data_json)
playlist_title = data.get('DATA', {}).get('TITLE')