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