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 b93adfca5f790f5697faf37562e2e8836c0f4d2a..ec7e7df7bc1f7a6b8ffdb4fc46b24a9bf8cb5148 100644
(file)
--- a/
youtube_dl/extractor/reverbnation.py
+++ b/
youtube_dl/extractor/reverbnation.py
@@
-3,7
+3,7
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
-from ..utils import str
ip_jsonp
+from ..utils import str
_or_none
class ReverbNationIE(InfoExtractor):
class ReverbNationIE(InfoExtractor):
@@
-16,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$"
},
}]
@@
-36,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',