Do not error if failed to get library watched
This commit is contained in:
@@ -309,7 +309,7 @@ class Jellyfin:
|
||||
f"Jellyfin: Failed to get watched for {user_name} in library {library_title}, Error: {e}",
|
||||
2,
|
||||
)
|
||||
raise Exception(e)
|
||||
return {}
|
||||
|
||||
async def get_users_watched(
|
||||
self,
|
||||
|
||||
@@ -80,7 +80,6 @@ def get_user_library_watched(user, user_plex, library):
|
||||
# Get all watched episodes for show
|
||||
episode_guids = {}
|
||||
for episode in show.watched():
|
||||
if episode.viewCount > 0:
|
||||
episode_guids_temp = {}
|
||||
for guid in episode.guids:
|
||||
# Extract after :// from guid.id
|
||||
@@ -116,7 +115,7 @@ def get_user_library_watched(user, user_plex, library):
|
||||
f"Plex: Failed to get watched for {user_name} in library {library.title}, Error: {e}",
|
||||
2,
|
||||
)
|
||||
raise Exception(e)
|
||||
return {}
|
||||
|
||||
|
||||
def update_user_watched(user, user_plex, library, videos, dryrun):
|
||||
|
||||
Reference in New Issue
Block a user