Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix: set video descriptions

  • Loading branch information...
commit f379420005c9f263efaa06e05177b209ce68c064 1 parent 2c2f2c0
Noah Silas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  pytube/client.py
View
2  pytube/client.py
@@ -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'])
Please sign in to comment.
Something went wrong with that request. Please try again.