diff --git a/PythonRpcServer/youtube.py b/PythonRpcServer/youtube.py index ca69b7d..dec0fa7 100644 --- a/PythonRpcServer/youtube.py +++ b/PythonRpcServer/youtube.py @@ -70,8 +70,8 @@ def get_youtube_playlist(self, identifier): 'force_generic_extractor': True, } medias = [] - # Current time in YYYYMMDD format - now = datetime.datetime.now().strftime('%Y%m%d') + # Current time in iso date time format + now = datetime.datetime.now().isoformat() with yt_dlp.YoutubeDL(ydl_opts) as ydl: info_dict = ydl.extract_info(url, download=False) for entry in info_dict.get( 'entries', []):