This commit is contained in:
Luigi311
2023-04-11 08:48:30 -06:00
parent 58337bd38c
commit 4870ff9e7a
3 changed files with 185 additions and 182 deletions

View File

@@ -591,8 +591,8 @@ class Jellyfin:
break
if movie_status:
jellyfin_video_id = jellyfin_video["Id"]
if movie_status["completed"]:
jellyfin_video_id = jellyfin_video["Id"]
msg = f"{jellyfin_video['Name']} as watched for {user_name} in {library} for Jellyfin"
if not dryrun:
logger(f"Marking {msg}", 0)
@@ -605,7 +605,6 @@ class Jellyfin:
logger(f"Dryrun {msg}", 0)
else:
# TODO add support for partially watched movies
jellyfin_video_id = jellyfin_video["Id"]
msg = f"{jellyfin_video['Name']} as partially watched for {floor(movie_status['time'] / 60_000)} minutes for {user_name} in {library} for Jellyfin"
if not dryrun:
pass

View File

@@ -174,10 +174,8 @@ def episode_title_dict(user_list: dict):
for show in user_list:
for season in user_list[show]:
for episode in user_list[show][season]:
# Iterate through the keys and values in each episode
for episode_key, episode_value in episode.items():
# If the key is not "status", add the key to episode_output_dict if it doesn't exist
if episode_key != "status":
if episode_key.lower() not in episode_output_dict: