fix and working Clips downloader/uploader

This commit is contained in:
2026-07-17 23:08:26 -04:00
parent 8be00d16d1
commit 483a771575
5 changed files with 101 additions and 21 deletions
+4 -3
View File
@@ -37,7 +37,8 @@ class Database:
clip_by TEXT NOT NULL,
view_count INTEGER NOT NULL,
downloaded INTEGER NOT NULL,
uploaded_yt INTEGER NOT NULL
uploaded_yt INTEGER NOT NULL,
shorts_upload_yt INTEGER NOT NULL
)
"""
)
@@ -71,11 +72,11 @@ class Database:
if self.table == "clips":
id = "slug"
CURSOR.execute(
self.CURSOR.execute(
f"UPDATE {self.table} SET uploaded_yt = 1 WHERE {id} = ?",
(record_id,)
)
CONN.commit()
self.CONN.commit()
def mark_as_downloaded(self, record_id: int):
"""Updates the downloaded status to True (1) for a specific record ID."""