Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player device creator fixes #20

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pysqueezebox/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__(
self._player_prefs: PlayerPrefs = {}

_creator = None
_squeezelite = ", Adrian Smith & Ralph Irving"
_squeezelite = ", Ralph Irving & Adrian Smith"
if model is None:
# make typing happy
pass
Expand All @@ -187,14 +187,16 @@ def __init__(
elif model == "Squeezelite-X":
_creator = "R G Dawson"
elif model == "SqueezeLite" or "SqueezePlay" in model:
_creator = "Adrian Smith & Ralph Irving"
_creator = "Ralph Irving & Adrian Smith"
_squeezelite = ""
elif model == "SqueezeLite-HA-Addon":
_creator = "pssc"
elif model == "RaopBridge" or model == "CastBridge":
_creator = "philippe"
elif model == "SB Player":
_creator = "Wayne Tam"
elif model == "WiiM Player":
_creator = "LinkPlay"
elif (
"Squeezebox" in model
or "Transporter" in model
Expand All @@ -204,7 +206,7 @@ def __init__(
_creator = "Logitech"

if model_type == "squeezelite":
_creator = str(_creator) + _squeezelite
_creator = (_creator or "") + _squeezelite

self._creator = _creator
_LOGGER.debug("Creating SqueezeBox object: %s, %s", name, player_id)
Expand Down