Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Support missing libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Feb 28, 2021
1 parent ee02cb7 commit 486d9c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/plex_assistant/plex_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ def update_libraries(self):
self.media["updated"] = datetime.now()

def get_section_id(self, section):
return self.library.search(libtype=section, limit=1)[0].librarySectionID
section = self.library.search(libtype=section, limit=1)
return None if not section else section[0].librarySectionID

0 comments on commit 486d9c9

Please sign in to comment.