mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 13:12:45 +01:00
[xhamster] Fix upload date extraction
This commit is contained in:
parent
6609b3ce37
commit
4763b624a6
@ -72,10 +72,9 @@ def is_hd(webpage):
|
|||||||
mobj = re.search(r'<span>Description: </span>([^<]+)', webpage)
|
mobj = re.search(r'<span>Description: </span>([^<]+)', webpage)
|
||||||
description = mobj.group(1) if mobj else None
|
description = mobj.group(1) if mobj else None
|
||||||
|
|
||||||
upload_date = self._html_search_regex(r'hint=\'(\d{4}-\d{2}-\d{2}) \d{2}:\d{2}:\d{2} [A-Z]{3,4}\'',
|
upload_date = unified_strdate(self._search_regex(
|
||||||
webpage, 'upload date', fatal=False)
|
r'hint=["\'](\d{4}-\d{2}-\d{2}) \d{2}:\d{2}:\d{2} [A-Z]{3,4}',
|
||||||
if upload_date:
|
webpage, 'upload date', fatal=False))
|
||||||
upload_date = unified_strdate(upload_date)
|
|
||||||
|
|
||||||
uploader = self._html_search_regex(
|
uploader = self._html_search_regex(
|
||||||
r"<a href='[^']+xhamster\.com/user/[^>]+>(?P<uploader>[^<]+)",
|
r"<a href='[^']+xhamster\.com/user/[^>]+>(?P<uploader>[^<]+)",
|
||||||
|
Loading…
Reference in New Issue
Block a user