Skip to content

Server URL with trailing / produces unexpected error #45

Description

@pinusc

Currently, if the url parameter in the config has a trailing slash (e.g. https://music.example.com/ as opposed to https://music.example.com), then subidy is able to connect correctly and even show songs/albums/etc, but fails to stream - yielding instead a very confusing error about needing a gstreamer plugin for text/html.

The reason for this is that subidy later generates URLs with double slashes, such as https://music.example.com//rest/stream.view?id=tr-12749&c=Mopidy-Subidy&v=1.14.0&u=******&p=******, which can produce an HTML error page instead of a binary audio stream.

I made a PR to fix this, it should link to this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions