1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-25 02:05:50 +01:00

[videolectures.net] Make description optional

This commit is contained in:
Philipp Hagemeister 2014-03-21 17:35:11 +01:00
parent 7e2ede9891
commit fa154d1dbe

View File

@ -36,7 +36,10 @@ class VideoLecturesNetIE(InfoExtractor):
smil = self._download_xml(smil_url, video_id)
title = find_xpath_attr(smil, './/meta', 'name', 'title').attrib['content']
description = find_xpath_attr(smil, './/meta', 'name', 'abstract').attrib['content']
description_el = find_xpath_attr(smil, './/meta', 'name', 'abstract')
description = (
None if description_el is None
else description_el.attrib['content'])
upload_date = unified_strdate(
find_xpath_attr(smil, './/meta', 'name', 'date').attrib['content'])