Skip to content

SqueezePlay.pm: Possible wrong string compare??? #909

@chincheta0815

Description

@chincheta0815

Hej there,

I am trying to get some proper Mute Info into Squeezelite and found something possibly wrong in Slim/Player/SqueezePlay.pm.

Shouldn't the regexp in that line: https://github.com/Logitech/slimserver/blob/a063401fe91bc81889f3ca2524f1ce6ab349879c/Slim/Player/SqueezePlay.pm#L250

... if (abs($fade) > 1 || $client->model !~ /baby|fab4/) { ...

rather be
... if (abs($fade) > 1 || $client->model =~ /baby|fab4/) { ...

Otherwise the comment
# for long fades do standard behavior so that sleep/alarm work
does not make any sense (at least) to me: squeezelite usually has no internal alarm function.

The issue would also explain why I am getting fade on mute and unmute with squeezelite...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions