Skip to content

Commit

Permalink
Plex: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Jan 6, 2024
1 parent cf122ad commit 2fe59b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ async def get_watched_libraries(users, users_list, blacklist_library, whitelist_

for library_watched in libraries_watched:
if library_watched:
if user.title.lower() not in users_watched.keys():
users_watched[user.title.lower()] = {}
user = list(library_watched.keys())[0]
if user not in users_watched.keys():
users_watched[user] = {}

users_watched[user.title.lower()].update(library_watched[user.title.lower()])
users_watched[user].update(library_watched[user])



Expand Down

0 comments on commit 2fe59b3

Please sign in to comment.