Skip to content

Commit 8e18b69

Browse files
committed
Fix creation date
1 parent 46516fc commit 8e18b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PythonRpcServer/youtube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def get_youtube_playlist(self, identifier):
7070
'force_generic_extractor': True,
7171
}
7272
medias = []
73-
# Current time in YYYYMMDD format
74-
now = datetime.datetime.now().strftime('%Y%m%d')
73+
# Current time in iso date time format
74+
now = datetime.datetime.now().isoformat()
7575
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
7676
info_dict = ydl.extract_info(url, download=False)
7777
for entry in info_dict.get( 'entries', []):

0 commit comments

Comments
 (0)