From: Christian Heller Date: Tue, 10 Dec 2024 22:16:42 +0000 (+0100) Subject: To each new file, add "new" tag. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/todo?a=commitdiff_plain;h=622365cf1b5611b86e66a9f857e4bad55abca710;p=ytplom To each new file, add "new" tag. --- 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: