From 7d1d79baeed7e554e8b42eb400ec4a529cc829e7 Mon Sep 17 00:00:00 2001 From: Gianpiero Date: Wed, 2 Oct 2019 21:36:09 +0200 Subject: [PATCH] fixed a problem with date in raiplay download --- youtube_dl/extractor/rai.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index 207a6c247..a14cdfab9 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -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)