mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 09:57:16 +08:00
fixed a problem with date in raiplay download
This commit is contained in:
parent
aaf9d904aa
commit
7d1d79baee
@ -25,6 +25,7 @@ from ..utils import (
|
||||
xpath_text,
|
||||
)
|
||||
|
||||
from datetime import date
|
||||
|
||||
class RaiBaseIE(InfoExtractor):
|
||||
_UUID_RE = r'[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}'
|
||||
@ -210,6 +211,7 @@ class RaiPlayIE(RaiBaseIE):
|
||||
media, lambda x: x['isPartOf']['numeroStagioni'])),
|
||||
'season': media.get('stagione') or None,
|
||||
'subtitles': subtitles,
|
||||
'upload_date': media.get('datePublished') or date.today().strftime("%Y%m%d"),
|
||||
}
|
||||
|
||||
info.update(relinker_info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user