projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85741b9
)
[8tracks] Improve extraction
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Mar 2015 09:54:23 +0000
(15:54 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Mar 2015 09:54:23 +0000
(15:54 +0600)
youtube_dl/extractor/eighttracks.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/eighttracks.py
b/youtube_dl/extractor/eighttracks.py
index 869ff72d654d732a0e092f209cbb910af3d0bd5e..49ec2be4ce8d799047de54a73f6b5fbc3344bba1 100644
(file)
--- a/
youtube_dl/extractor/eighttracks.py
+++ b/
youtube_dl/extractor/eighttracks.py
@@
-108,9
+108,10
@@
class EightTracksIE(InfoExtractor):
webpage = self._download_webpage(url, playlist_id)
- json_like = self._search_regex(
- r"(?s)PAGE.mix = (.*?);\n", webpage, 'trax information')
- data = json.loads(json_like)
+ data = self._parse_json(
+ self._search_regex(
+ r"(?s)PAGE\.mix\s*=\s*({.+?});\n", webpage, 'trax information'),
+ playlist_id)
session = str(random.randint(0, 1000000000))
mix_id = data['id']