1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 05:47:20 +08:00

added old upload_date pattern

This commit is contained in:
Kevin Laube 2020-01-15 07:36:39 +01:00
parent 748df3d606
commit 38fd4dea75

View File

@ -167,7 +167,8 @@ class YouPornIE(InfoExtractor):
webpage, 'uploader', fatal=False)
upload_date = unified_strdate(self._html_search_regex(
[r'Date\s+[Aa]dded:\s*<span>([^<]+)',
r'(?s)<div[^>]+class=["\']video-uploaded["\'][^>]*>[^<]+?<span>([^<]+)'],
r'(?s)<div[^>]+class=["\']video-uploaded["\'][^>]*>[^<]+?<span>([^<]+)',
r'(?s)<div[^>]+class=["\']videoInfo(?:Date|Time)["\'][^>]*>(.+?)</div>'],
webpage, 'upload date', fatal=False))
age_limit = self._rta_search(webpage)