1
mirror of https://github.com/home-assistant/core synced 2024-09-09 12:51:22 +02:00

Handle missing section ID for Plex clips (#51598)

This commit is contained in:
jjlawren 2021-06-07 20:17:14 -05:00 committed by GitHub
parent 6c2e452e3d
commit de2dc92741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class PlexSession:
if media.librarySectionID in SPECIAL_SECTIONS:
self.media_library_title = SPECIAL_SECTIONS[media.librarySectionID]
elif media.librarySectionID < 1:
elif media.librarySectionID and media.librarySectionID < 1:
self.media_library_title = UNKNOWN_SECTION
_LOGGER.warning(
"Unknown library section ID (%s) for title '%s', please create an issue",