Skip to content

Commit

Permalink
Fix creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
angrave committed Oct 23, 2024
1 parent 46516fc commit 8e18b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PythonRpcServer/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', []):
Expand Down

0 comments on commit 8e18b69

Please sign in to comment.