1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-29 20:51:10 +02:00

[deezer] Fix extraction (Closes #9086)

This commit is contained in:
Sergey M․ 2016-04-05 22:27:33 +06:00
parent e42f413716
commit 65150b41bb

View File

@ -41,7 +41,9 @@ def _real_extract(self, url):
'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')