Skip to content

Commit

Permalink
accept true or 1 as value
Browse files Browse the repository at this point in the history
  • Loading branch information
Siemon Geeroms committed Dec 1, 2024
1 parent 7dafc4c commit 9f24d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/plex/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def process_plex_payload(
return PlexMediaSearchResult(playqueue, content)

search_query = content.copy()
shuffle = search_query.pop("shuffle", 0)
shuffle = search_query.pop("shuffle", 0)
continuous = search_query.pop("continuous", 0)

# Remove internal kwargs before passing copy to plexapi
Expand All @@ -203,7 +203,7 @@ def process_plex_payload(

if supports_playqueues and (isinstance(media, list) or shuffle or continuous):
playqueue = plex_server.create_playqueue(
media, includeRelated=0, shuffle=shuffle, continuous=continuous
media, includeRelated=0, shuffle=1 if shuffle else 0, continuous=1 if continuous else 0
)
return PlexMediaSearchResult(playqueue, content)

Expand Down

0 comments on commit 9f24d1f

Please sign in to comment.