From 8e18b699d4662ec026224a2cb47641b31c9e0677 Mon Sep 17 00:00:00 2001 From: Lawrence Angrave Date: Wed, 23 Oct 2024 16:30:40 -0500 Subject: [PATCH] Fix creation date --- PythonRpcServer/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', []):