1
0
Fork 0
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:
dirkf 2022-02-27 04:52:38 +00:00
parent 2fe0d70b6e
commit 1cd4bb0d82

View file

@ -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: