REFACTOR: Removed unnecessary functions

This commit is contained in:
2025-03-02 16:27:31 +00:00
parent 91c1ac0d28
commit f49a0c20db

View File

@@ -149,29 +149,4 @@ def get_vod_tags(vod_id: int):
JOIN vod_tags ON tags.tag_id = vod_tags.tag_id JOIN vod_tags ON tags.tag_id = vod_tags.tag_id
WHERE vod_id = ?; WHERE vod_id = ?;
""", (vod_id,)) """, (vod_id,))
return tags return tags
def create_user_directories(username: str):
"""
Create directories for user stream data if they do not exist
"""
path_m = PathManager()
vods_path = path_m.get_vods_path(username)
stream_path = path_m.get_stream_path(username)
if not os.path.exists(vods_path):
os.makedirs(vods_path)
if not os.path.exists(stream_path):
os.makedirs(stream_path)
# Fix permissions
os.chmod(vods_path, 0o777)
os.chmod(stream_path, 0o777)
return {
"vod_path": vods_path,
"stream_path": stream_path
}