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:
parent
6c2e452e3d
commit
de2dc92741
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user