Skip to content

Commit

Permalink
Allow http fallback if https isn't supported LOCALLY (#126)
Browse files Browse the repository at this point in the history
Consider https not available if it's not supported locally
  • Loading branch information
forslund authored Apr 28, 2022
1 parent 1a9b3f8 commit 424f26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def handle_play_request(self, station: BaseStation = None):
def is_https_supported(self) -> bool:
"""Check if any available audioservice backend supports https."""
for service in self.audioservice.available_backends().values():
if 'https' in service['supported_uris']:
if ('https' in service['supported_uris'] and
service['remote'] is False):
return True
return False

Expand Down

0 comments on commit 424f26e

Please sign in to comment.