1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-21 00:03:03 +08:00

[ccc] Fix upload date extraction

This commit is contained in:
Sergey M․ 2016-01-01 15:22:22 +06:00
parent 0d5095fc65
commit c9154514c4

View File

@ -46,7 +46,7 @@ class CCCIE(InfoExtractor):
r"(?s)<p class='description'>(.*?)</p>",
webpage, 'description', fatal=False)
upload_date = unified_strdate(self._html_search_regex(
r"(?s)<span class='[^']*fa-calendar-o'></span>(.*?)</li>",
r"(?s)<span[^>]+class='[^']*fa-calendar-o'[^>]*>(.+?)</span>",
webpage, 'upload date', fatal=False))
view_count = int_or_none(self._html_search_regex(
r"(?s)<span class='[^']*fa-eye'></span>(.*?)</li>",