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

Commit

Permalink
Fix for onDeck filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Sep 23, 2020
1 parent 0d8a0c1 commit fd70bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/plex_assistant/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def video_selection(option, media, lib):
media = list(
filter(lambda x:
(x.type == "movie" and x.title == media.title) or
(media.title == x.show().title) or
(media.show().title == x.show().title), ondeck))
(getattr(x, "show", None) and media.title == x.show().title) or
(getattr(media, "show", None) and media.show().title == x.show().title), ondeck))
elif option["library"]:
media = PA.plex.sectionByID(
option["library"][0].librarySectionID).onDeck()
Expand Down

0 comments on commit fd70bcd

Please sign in to comment.