mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[reverbnation] Simplify json download
We can directly get a json file instead of the jsonp.
This commit is contained in:
parent
85a699246a
commit
511c4325dc
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import strip_jsonp
|
from ..utils import strip_jsonp
|
||||||
|
@ -27,10 +26,8 @@ def _real_extract(self, url):
|
||||||
song_id = mobj.group('id')
|
song_id = mobj.group('id')
|
||||||
|
|
||||||
api_res = self._download_json(
|
api_res = self._download_json(
|
||||||
'https://api.reverbnation.com/song/%s?callback=api_response_5&_=%d'
|
'https://api.reverbnation.com/song/%s' % song_id,
|
||||||
% (song_id, int(time.time() * 1000)),
|
|
||||||
song_id,
|
song_id,
|
||||||
transform_source=strip_jsonp,
|
|
||||||
note='Downloading information of song %s' % song_id
|
note='Downloading information of song %s' % song_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue