projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b27d83
)
[vevo] Simplify artists extraction
author
Sergey M․
<dstftw@gmail.com>
Thu, 24 Nov 2016 16:09:35 +0000
(23:09 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 24 Nov 2016 16:09:35 +0000
(23:09 +0700)
youtube_dl/extractor/vevo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vevo.py
b/youtube_dl/extractor/vevo.py
index ce607945fffc0d97443212670c30d3eb11b182fb..5aa0978851f3c8826db0a5596bbbcdf3c585e911 100644
(file)
--- a/
youtube_dl/extractor/vevo.py
+++ b/
youtube_dl/extractor/vevo.py
@@
-259,14
+259,10
@@
class VevoIE(VevoBaseIE):
timestamp = parse_iso8601(video_info.get('releaseDate'))
artists = video_info.get('artists')
for curr_artist in artists:
timestamp = parse_iso8601(video_info.get('releaseDate'))
artists = video_info.get('artists')
for curr_artist in artists:
- if 'role' in curr_artist:
- if curr_artist['role'] == 'Featured':
- featured_artist = curr_artist['name']
- elif curr_artist['role'] == 'Main':
- artist = uploader = curr_artist['name']
+ if curr_artist.get('role') == 'Featured':
+ featured_artist = curr_artist['name']
else:
artist = uploader = curr_artist['name']
else:
artist = uploader = curr_artist['name']
- break
view_count = int_or_none(video_info.get('views', {}).get('total'))
for video_version in video_versions:
view_count = int_or_none(video_info.get('views', {}).get('total'))
for video_version in video_versions: