projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dramafever] Fix subtitles extraction (Closes #8049)
[youtube-dl]
/
youtube_dl
/
extractor
/
reverbnation.py
diff --git
a/youtube_dl/extractor/reverbnation.py
b/youtube_dl/extractor/reverbnation.py
index c7784933674c2eeca06d9353b728d7e04f1d97ce..ec7e7df7bc1f7a6b8ffdb4fc46b24a9bf8cb5148 100644
(file)
--- a/
youtube_dl/extractor/reverbnation.py
+++ b/
youtube_dl/extractor/reverbnation.py
@@
-1,10
+1,9
@@
from __future__ import unicode_literals
import re
from __future__ import unicode_literals
import re
-import time
from .common import InfoExtractor
from .common import InfoExtractor
-from ..utils import str
ip_jsonp
+from ..utils import str
_or_none
class ReverbNationIE(InfoExtractor):
class ReverbNationIE(InfoExtractor):
@@
-17,7
+16,7
@@
class ReverbNationIE(InfoExtractor):
"ext": "mp3",
"title": "MONA LISA",
"uploader": "ALKILADOS",
"ext": "mp3",
"title": "MONA LISA",
"uploader": "ALKILADOS",
- "uploader_id":
216429
,
+ "uploader_id":
"216429"
,
"thumbnail": "re:^https://gp1\.wac\.edgecastcdn\.net/.*?\.jpg$"
},
}]
"thumbnail": "re:^https://gp1\.wac\.edgecastcdn\.net/.*?\.jpg$"
},
}]
@@
-27,10
+26,8
@@
class ReverbNationIE(InfoExtractor):
song_id = mobj.group('id')
api_res = self._download_json(
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,
song_id,
- transform_source=strip_jsonp,
note='Downloading information of song %s' % song_id
)
note='Downloading information of song %s' % song_id
)
@@
-39,7
+36,7
@@
class ReverbNationIE(InfoExtractor):
'title': api_res.get('name'),
'url': api_res.get('url'),
'uploader': api_res.get('artist', {}).get('name'),
'title': api_res.get('name'),
'url': api_res.get('url'),
'uploader': api_res.get('artist', {}).get('name'),
- 'uploader_id':
api_res.get('artist', {}).get('id'
),
+ 'uploader_id':
str_or_none(api_res.get('artist', {}).get('id')
),
'thumbnail': self._proto_relative_url(
api_res.get('image', api_res.get('thumbnail'))),
'ext': 'mp3',
'thumbnail': self._proto_relative_url(
api_res.get('image', api_res.get('thumbnail'))),
'ext': 'mp3',