rearange files and updateing files

This commit is contained in:
SumGuyV5 committed 2026-09-11 20:08:26 +00:00
1 parent 20acb4bc9f
commit 2de2c461e2
28 files changed
+285 -188

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
#!/usr/bin/env python3
import package.database as database
from pathlib import Path
DB = None
def remove_vods():
chats = DB.get_vods()
#chats = DB.get_clips()
for chat in chats:
(
id,
title,
created_at,
view_count,
duration,
url,
thumbnail_url,
game_id,
game_name,
stream_id,
creator_name,
clip_is,
downloaded,
uploaded_yt,
uploaded_yt_chats,
uploaded_yt_shorts,
) = chat
#shutil.rmtree(f"", ignore_errors=True)
if clip_is:
source = Path(f"../saveoldold/clips/{id}")
destination = Path(f"../savedup/clips/{id}")
else:
source = Path(f"../saveoldold/{id}")
destination = Path(f"../savedup/{id}")
if source.exists() and source.is_dir():
source.rename(destination)
print("====================================================")
print(f"🚀 VOD to remove: {title}")
print("====================================================")
print("====================================================")
print(f"✅ Processing: VOD removal Done.")
print("====================================================")
def main():
global DB
DB = database.Database()
remove_vods()
if __name__ == "__main__":
main()