address old python compatibility when parsing date

This commit is contained in:
Rafael Moraes 2024-10-27 12:36:12 -03:00
parent 2d3b2b6b1f
commit 4d904e2e7c

View File

@ -311,7 +311,7 @@ class Downloader:
return f"{minutes:02d}:{seconds:02d}" return f"{minutes:02d}:{seconds:02d}"
def sanitize_date(self, date: str) -> datetime.datetime: 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: def get_decryption_key(self, pssh: str, track_id: str) -> str:
try: try: