Fixed uploader name display for Youtube's new display names
This commit is contained in:
parent
5867cb05c7
commit
764a74a3ea
|
@ -42,7 +42,7 @@ def get_video_description(video_id):
|
|||
out += ' - \x02%s\x02 views' % format(data['viewCount'], ",d")
|
||||
|
||||
try:
|
||||
uploader = http.get_json(base_url + "users/{}?alt=json".format(data["uploader"]))["entry"]["author"]["name"]["$t"]
|
||||
uploader = http.get_json(base_url + "users/{}?alt=json".format(data["uploader"]))["entry"]["author"][0]["name"]["$t"]
|
||||
except:
|
||||
uploader = data["uploader"]
|
||||
|
||||
|
|
Reference in a new issue