1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

dash.parse_dates: add a new time of date format..

This commit is contained in:
Johan Andersson 2018-10-06 23:17:45 +02:00
parent 72591c20f0
commit 5ac273dc47

View File

@ -186,7 +186,8 @@ def _dashparse(config, text, url, output, cookies):
def parse_dates(date_str): 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 dt = None
for pattern in date_patterns: for pattern in date_patterns:
try: try: