home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e9ef4c
)
To each new file, add "new" tag.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Dec 2024 22:16:42 +0000
(23:16 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Dec 2024 22:16:42 +0000
(23:16 +0100)
src/ytplom/misc.py
patch
|
blob
|
history
diff --git
a/src/ytplom/misc.py
b/src/ytplom/misc.py
index 5848159ea9596c6f9dc5b503c2befba270418fdd..90c5e3e4e066e4f46bad7c456a18fa875fbf37c0 100644
(file)
--- 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: