Skip to content

Commit

Permalink
Using description text instead of API muck
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Silas committed Jun 2, 2011
1 parent 5263a58 commit e204afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytube/client.py
Expand Up @@ -111,7 +111,7 @@ def __init__(self, client, data):

# All the following attributes don't exist for certain restricted videos
if u'media$description' in data[u'media$group']:
self.description = data[u'media$group'][u'media$description']
self.description = data[u'media$group'][u'media$description'][u'$t']
if u'yt$uploaded' in data[u'media$group']:
self.uploaded = yt_ts_to_datetime(data[u'media$group'][u'yt$uploaded'][u'$t'])
if u'yt$duration' in data[u'media$group']:
Expand Down

0 comments on commit e204afc

Please sign in to comment.