Permalink
Browse files

bugfix: set video descriptions

  • Loading branch information...
Noah Silas
Noah Silas committed Jun 2, 2011
1 parent 2c2f2c0 commit f379420005c9f263efaa06e05177b209ce68c064
Showing with 1 addition and 1 deletion.
  1. +1 −1 pytube/client.py
View
@@ -110,7 +110,7 @@ def __init__(self, client, data):
self.comments = self.client.video_comments(self.id)
# All the following attributes don't exist for certain restricted videos
- if u'media$description' in u'media$group':
+ if u'media$description' in data[u'media$group']:
self.description = data[u'media$group'][u'media$description']
if u'yt$uploaded' in data[u'media$group']:
self.uploaded = yt_ts_to_datetime(data[u'media$group'][u'yt$uploaded'][u'$t'])

0 comments on commit f379420

Please sign in to comment.