Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bugfix: set video descriptions
  • Loading branch information
Noah Silas committed Jun 2, 2011
1 parent 2c2f2c0 commit f379420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytube/client.py
Expand Up @@ -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'])
Expand Down

0 comments on commit f379420

Please sign in to comment.