Cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user