diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-08-10 10:58:22 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-08-10 10:58:22 +0200 |
commit | 511c4325dc8e3a60d81d3c23e8eb330b3a706883 (patch) | |
tree | 1912688d4b1f260b7d1c033fb51f79d3afdb4971 | |
parent | 85a699246aa7554e2a88d5a93793dccb9a0b8d6d (diff) |
[reverbnation] Simplify json download
We can directly get a json file instead of the jsonp.
-rw-r--r-- | youtube_dl/extractor/reverbnation.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/reverbnation.py b/youtube_dl/extractor/reverbnation.py index c77849336..b93adfca5 100644 --- a/youtube_dl/extractor/reverbnation.py +++ b/youtube_dl/extractor/reverbnation.py @@ -1,7 +1,6 @@ from __future__ import unicode_literals import re -import time from .common import InfoExtractor from ..utils import strip_jsonp @@ -27,10 +26,8 @@ class ReverbNationIE(InfoExtractor): song_id = mobj.group('id') api_res = self._download_json( - 'https://api.reverbnation.com/song/%s?callback=api_response_5&_=%d' - % (song_id, int(time.time() * 1000)), + 'https://api.reverbnation.com/song/%s' % song_id, song_id, - transform_source=strip_jsonp, note='Downloading information of song %s' % song_id ) |