Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Spotify: doesn't seem to use proxy #626
When using tizonia behind a proxy, it tries to make a direct connection to Spotify and fails.
Steps to Reproduce
Expected behavior: Since I have the environment variable "http_proxy" set, I expected tizonia to honor that. That same proxy setting is what I use in the official Spotify client, and that works.
Actual behaviour: The song never starts.
Reproduces how often: 100%
Installation Method Used
Hi!, thanks for taking the time to raise an issue and apologies for the delayed reply!
Yes, Tizonia currently does not explicitly support configuration of an http proxy for Spotify or any of the other services. I'm not sure at this point if libspotify supports this somehow. If that was the case, then it would be relatively easy to add this configuration option into tizonia.conf.
I don't have a timeframe for when this could be done (or checked at least) so any help from the community on this would be greatly appreciated.
Well, I'm not a programmer, so I don't know if libspotify supports proxy or not. However, I found references to it here: https://pyspotify.mopidy.com/en/v2.0.5/api/config/ - although I must confess that I don't know if that page is relevant in this case or not.
I've just checked this and I believe there is a possibility to pass the proxy configuration to libspotify (which is the underlying mechanism used by both mopidy, Tizonia and other open-source tools that currently stream from Spotify).
I'll look into that sometime, but this should not be too difficult to implement.
This is now work-in-progress, in the 'develop' branch. Proxy settings can be provided (for use with Spotify only) via
@danlii would you be able to test the proxy feature using a pre-release build that I would upload here?