Get description or None

This commit is contained in:
Andrew Udvare 2018-06-30 08:18:32 -04:00
parent a8aa503d99
commit 1b02c9f96b
No known key found for this signature in database
GPG Key ID: 1AFD9AFC120C26DD

View File

@ -14,11 +14,6 @@ class CheekyVideosIE(InfoExtractor):
'ext': 'mp4',
'title': 'Video title goes here',
'thumbnail': r're:^https?://.*\.jpg$',
# TODO more properties, either as:
# * A value
# * MD5 checksum; start the string with md5:
# * A regular expression; start the string with re:
# * Any Python type (for example int or float)
}
}
@ -35,7 +30,7 @@ class CheekyVideosIE(InfoExtractor):
return {
'id': video_id,
'title': title,
'description': self._html_search_meta('description', webpage, display_name='description'),
'description': self._html_search_meta('description', webpage, default=None),
'uploader': uploader,
'url': url,
}