Fixed uploader name display for Youtube's new display names

This commit is contained in:
Steven Smith 2013-09-21 20:27:20 +08:00
parent 5867cb05c7
commit 764a74a3ea

View file

@ -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"]