This commit is contained in:
Luigi311
2023-03-08 22:21:40 -07:00
parent 7087d75efb
commit 5824e6c0cc
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ def get_user_library_watched_show(show):
m = re.match(r"(.*)://(.*)", guid.id) m = re.match(r"(.*)://(.*)", guid.id)
guid_source, guid_id = m.group(1).lower(), m.group(2) guid_source, guid_id = m.group(1).lower(), m.group(2)
episode_guids_temp[guid_source] = guid_id episode_guids_temp[guid_source] = guid_id
except: except Exception:
logger( logger(
f"Plex: Failed to get guids for {episode.title} in {show.title}, Using location only", f"Plex: Failed to get guids for {episode.title} in {show.title}, Using location only",
1, 1,
@@ -70,7 +70,7 @@ def get_user_library_watched_show(show):
return show_guids, episode_guids return show_guids, episode_guids
except Exception as e: except Exception:
return {}, {} return {}, {}

View File

@@ -302,7 +302,7 @@ def test_mapping_cleanup_watched():
def test_combine_watched_dicts(): def test_combine_watched_dicts():
input = [ input_watched = [
{ {
"test3": { "test3": {
"Anime Movies": [ "Anime Movies": [
@@ -407,4 +407,4 @@ def test_combine_watched_dicts():
} }
} }
assert combine_watched_dicts(input) == expected assert combine_watched_dicts(input_watched) == expected