Also fix up attributes and countrycode mapping as outlined in migration suggestions at https://api.radio-browser.info/
Co-authored-by: Thomas Endt <thomas.endt@uipath.com>
Co-authored-by: Jonathan Rawle <git@jonathanrawle.co.uk>
Station icons now get converted to a JPEG with a maxmimum dimension of 290 on icon request.
Although we need to implement caching and aspect ratio keeping, this should fix issues with incompatible station icons and HTTPS icon URLs.
Adds a new package dependency: Pillow
Every stream URL is may now be fetched from the YCast server via redirection.
This allows for future integration of a "recently played" functionality and an availability check.
To work around the issue that a few AVRs blindly append parameters
with an ampersand.
This also allows us to get rid of the search logic workaround.
Furthermore the vTuner API also hacks around the issue this way.
So this seems like the correct way to handle that even if it looks ugly.
* use flask for easier url handling and tidyness
* create radio-browser.info and vtuner api classes
* add support for more vtuner logic (logos, info messages, search, buttons, etc.)
* use radio-browser.info index and search
* prepare for python packaging