From 57e51c8bb10517e1dc0dead169372e9dd3e2740a Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Tue, 31 Jul 2018 10:20:43 +0200 Subject: [PATCH] parse date periods with hours and seconds only --- lib/svtplay_dl/fetcher/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py index cd85ab7..a16509d 100644 --- a/lib/svtplay_dl/fetcher/dash.py +++ b/lib/svtplay_dl/fetcher/dash.py @@ -180,7 +180,7 @@ def dashparse(config, res, url, output=None): 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"] + 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"] dt = None for pattern in date_patterns: try: