mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
dash.parse_dates: add a new time of date format..
This commit is contained in:
parent
72591c20f0
commit
5ac273dc47
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user