mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 23:35:45 +00:00
[mtv] Get timestamp from <airDate> if not found in <pubDate> of feed XML
This commit is contained in:
parent
2fe0d70b6e
commit
1cd4bb0d82
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
||||||
|
|
||||||
description = strip_or_none(xpath_text(itemdoc, 'description'))
|
description = strip_or_none(xpath_text(itemdoc, 'description'))
|
||||||
|
|
||||||
timestamp = timeconvert(xpath_text(itemdoc, 'pubDate'))
|
timestamp = timeconvert(xpath_text(itemdoc, 'pubDate') or xpath_text(itemdoc, 'airDate'))
|
||||||
|
|
||||||
title_el = None
|
title_el = None
|
||||||
if title_el is None:
|
if title_el is None:
|
||||||
|
|
Loading…
Reference in a new issue