feat: Refactor backup and sync paths, enhance configuration flexibility
This commit is contained in:
@@ -136,7 +136,7 @@ class SyncManager:
|
||||
try:
|
||||
if action == "synced":
|
||||
# 1. Write Local
|
||||
local_result_path = os.path.join(output_dir, "local_result.m3u8")
|
||||
local_result_path = os.path.join(output_dir, "outputs", "local_result.m3u8")
|
||||
if os.path.exists(local_result_path):
|
||||
tracks = load_local_playlist(local_result_path)
|
||||
dest_path = os.path.join(server_config.local_path, f"{playlist_name}.m3u8")
|
||||
@@ -145,7 +145,7 @@ class SyncManager:
|
||||
write_local_playlist(dest_path, tracks)
|
||||
|
||||
# 2. Write Remote (Plex)
|
||||
remote_result_path = os.path.join(output_dir, "remote_result.m3u8")
|
||||
remote_result_path = os.path.join(output_dir, "outputs", "remote_result.m3u8")
|
||||
if os.path.exists(remote_result_path):
|
||||
tracks = load_local_playlist(remote_result_path)
|
||||
if server_config.library_name:
|
||||
|
||||
Reference in New Issue
Block a user