mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 06:42:21 +00:00
[mtv] Get timestamp from <airDate> if not found in <pubDate> of feed XML
This commit is contained in:
parent
2fe0d70b6e
commit
1cd4bb0d82
@ -157,7 +157,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
||||
|
||||
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
|
||||
if title_el is None:
|
||||
|
Loading…
Reference in New Issue
Block a user