mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Print mtime before updating file metadata
This commit is contained in:
@ -514,8 +514,11 @@ class IliasPage:
|
||||
f"td.std:nth-child({index})"
|
||||
).getText().strip()
|
||||
if re.search(r"\d+\.\d+.\d+ - \d+:\d+", modification_string):
|
||||
log.explain(f"Converting {modification_string!r}")
|
||||
modification_time = datetime.strptime(modification_string, "%d.%m.%Y - %H:%M")
|
||||
break
|
||||
else:
|
||||
log.explain(f"Date has wrong format: {modification_string!r}")
|
||||
|
||||
if modification_time is None:
|
||||
log.warn(f"Could not determine upload time for {link}")
|
||||
|
Reference in New Issue
Block a user