This commit is contained in:
Luigi311
2022-06-13 16:46:29 -06:00
parent ca84bbb19d
commit 4657097f6d
4 changed files with 22 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ def cleanup_watched(watched_list_1, watched_list_2, user_mapping=None, library_m
# Generate full list of provider ids for episodes in watch_list_2 to easily compare if they exist in watch_list_1
_, episode_watched_list_2_keys_dict, _ = generate_library_guids_dict(watched_list_2[user_2][library_2], 1)
for show_key_1, show_item_1 in watched_list_1[user_1][library_1].items():
for show_key_1 in watched_list_1[user_1][library_1].keys():
show_key_dict = dict(show_key_1)
for season in watched_list_1[user_1][library_1][show_key_1]:
for episode in watched_list_1[user_1][library_1][show_key_1][season]:
@@ -268,10 +268,10 @@ def main():
plex_watched_filtered = copy.deepcopy(plex_watched)
jellyfin_watched_filtered = copy.deepcopy(jellyfin_watched)
logger(f"Cleaning Plex Watched", 1)
logger("Cleaning Plex Watched", 1)
plex_watched = cleanup_watched(plex_watched_filtered, jellyfin_watched_filtered, user_mapping, library_mapping)
logger(f"Cleaning Jellyfin Watched", 1)
logger("Cleaning Jellyfin Watched", 1)
jellyfin_watched = cleanup_watched(jellyfin_watched_filtered, plex_watched_filtered, user_mapping, library_mapping)
logger(f"plex_watched that needs to be synced to jellyfin:\n{plex_watched}", 1)

View File

@@ -1,4 +1,4 @@
import re, os, time
import re, os
from dotenv import load_dotenv
from src.functions import logger, search_mapping, check_skip_logic, generate_library_guids_dict