We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ba1acc commit 979b3cfCopy full SHA for 979b3cf
1 file changed
comiclib/scan.py
@@ -64,7 +64,9 @@ def scan(paths):
64
if not prev_scanners:
65
continue
66
if not any(tag.startswith("date_added:") for tag in metadata["tags"]):
67
- metadata["tags"].add(f"date_added:{int(real_path.stat().st_mtime)}")
+ # Directory modification times are often difficult to synchronize.
68
+ mtime_path = next(real_path.iterdir()) if real_path.is_dir() else real_path
69
+ metadata["tags"].add(f"date_added:{int(mtime_path.stat().st_mtime)}")
70
logging.debug(pformat(metadata))
71
a.title = metadata["title"]
72
a.subtitle = metadata["subtitle"]
0 commit comments