From 622365cf1b5611b86e66a9f857e4bad55abca710 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 10 Dec 2024 23:16:42 +0100 Subject: [PATCH] To each new file, add "new" tag. --- src/ytplom/misc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index 5848159..90c5e3e 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -595,7 +595,10 @@ class DownloadsManager: if p.is_file() and p not in known_paths]: yt_id = self._id_from_filename(path) print(f'SYNC: new file {path}, saving to YT ID "{yt_id}".') - file = VideoFile(digest=None, rel_path=path, yt_id=yt_id) + file = VideoFile(digest=None, + rel_path=path, + yt_id=yt_id, + tags_str='new') file.save(conn) self._files = VideoFile.get_all(conn) for file in self._files: -- 2.30.2