home · contact · privacy
To each new file, add "new" tag.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 10 Dec 2024 22:16:42 +0000 (23:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 10 Dec 2024 22:16:42 +0000 (23:16 +0100)
src/ytplom/misc.py

index 5848159ea9596c6f9dc5b503c2befba270418fdd..90c5e3e4e066e4f46bad7c456a18fa875fbf37c0 100644 (file)
@@ -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: