mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 10:31:29 +00:00
[franceinter] Fix upload date extraction (closes #14996)
This commit is contained in:
parent
0d9c48de4f
commit
b2a027fc6f
|
@ -33,7 +33,7 @@ def _real_extract(self, url):
|
||||||
description = self._og_search_description(webpage)
|
description = self._og_search_description(webpage)
|
||||||
|
|
||||||
upload_date_str = self._search_regex(
|
upload_date_str = self._search_regex(
|
||||||
r'class=["\']cover-emission-period["\'][^>]*>[^<]+\s+(\d{1,2}\s+[^\s]+\s+\d{4})<',
|
r'class=["\']\s*cover-emission-period\s*["\'][^>]*>[^<]+\s+(\d{1,2}\s+[^\s]+\s+\d{4})<',
|
||||||
webpage, 'upload date', fatal=False)
|
webpage, 'upload date', fatal=False)
|
||||||
if upload_date_str:
|
if upload_date_str:
|
||||||
upload_date_list = upload_date_str.split()
|
upload_date_list = upload_date_str.split()
|
||||||
|
|
Loading…
Reference in a new issue