diff options
-rwxr-xr-x | later | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ class WatchLaterEntry: path: str mtime: dt - def __str__(self): + def format(self, title_map): def format_time(time): now = dt.now() if time < now - datetime.timedelta(days=7): @@ -171,6 +171,6 @@ args = parser.parse_args() title_map = TitleMap(title_map_file, update=args.update_titles) for entry in entries(): - print(entry) + print(entry.format(title_map)) title_map.maybe_commit() |