From 5ac273dc47a4bd6a282ec10a9b25f86566edd185 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 6 Oct 2018 23:17:45 +0200 Subject: [PATCH] dash.parse_dates: add a new time of date format.. --- lib/svtplay_dl/fetcher/dash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py index 1918efc..ada0953 100644 --- a/lib/svtplay_dl/fetcher/dash.py +++ b/lib/svtplay_dl/fetcher/dash.py @@ -186,7 +186,8 @@ def _dashparse(config, text, url, output, cookies): def parse_dates(date_str): - date_patterns = ["%Y-%m-%dT%H:%M:%S.%fZ", "PT%HH%MM%S.%fS", "PT%HH%MM%SS", "PT%MM%S.%fS", "PT%MM%SS", "PT%HH%SS", "PT%HH%S.%fS"] + date_patterns = ["%Y-%m-%dT%H:%M:%S.%fZ", "%Y-%m-%dT%H:%M:%S", "PT%HH%MM%S.%fS", + "PT%HH%MM%SS", "PT%MM%S.%fS", "PT%MM%SS", "PT%HH%SS", "PT%HH%S.%fS"] dt = None for pattern in date_patterns: try: