From 4d904e2e7c25e85110875504038cea3d629c119d Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:36:12 -0300 Subject: [PATCH] address old python compatibility when parsing date --- gamdl/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamdl/downloader.py b/gamdl/downloader.py index 4d4029e..deda270 100644 --- a/gamdl/downloader.py +++ b/gamdl/downloader.py @@ -311,7 +311,7 @@ class Downloader: return f"{minutes:02d}:{seconds:02d}" def sanitize_date(self, date: str) -> datetime.datetime: - return datetime.datetime.fromisoformat(date).strftime(self.template_date) + return datetime.datetime.fromisoformat(date[:-1]).strftime(self.template_date) def get_decryption_key(self, pssh: str, track_id: str) -> str: try: