Commit graph

16 commits

Author SHA1 Message Date
milaq 0a2aaa163d Radiobrowser: Migrate to new API
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>
2020-10-10 15:20:22 +02:00
milaq f2f4c7a908 Radiobrowser: Add support for fetching playable station URL
We now get the playable station URL directly from the Radiobrowser API.
This fixes the issue with playlists in the 'url' attribute.

Does not work if played station tracking would be disabled.
It _could_ work but we would need to create an additional API request for every single listed station, even the ones not enqueued for playing.
This would then be way slower and put extra strain on the Radiobrowser API.
2019-08-26 20:39:36 +02:00
milaq 4cd99f2a9c Radiobrowser: Handle connection errors 2019-08-21 00:21:29 +02:00
milaq 1a51bd195c Add Radiobrowser station language listing
Co-authored-by: Zenith-Nadir <Zenith-Nadir@users.noreply.github.com>
2019-08-19 15:00:48 +02:00
milaq 803964ecb4 Unify station id generation 2019-08-19 13:57:35 +02:00
milaq 333fc2012f Unify version and user agent
Also use more detailed user agent as proposed by the Radiobrowser API
2019-08-18 14:11:38 +02:00
milaq 16387a3f50 Rework directory handling
This greatly improves loading times and takes some load off the APIs.

 * Add generic directory class to also hold item count
 * Radiobrowser: Get station count directly from API
 * Optionally show broken stations and their count
 * Remove minimum station bitrate to not filter away some listings
 * Improve code wording
 * Log API requests
2019-08-18 13:50:38 +02:00
milaq ed6baa692e Radiobrowser: Limit search results 2019-08-17 23:59:50 +02:00
milaq ce32358149 Radiobrowser: Reduce default station limit
Let's assume nobody wants to get 1000 stations by default.
Also takes some load off the Radiobrowser API.
2019-08-17 23:56:51 +02:00
milaq c3866440fa Radiobrowser: Fix handling of request errors 2019-08-14 16:11:19 +02:00
milaq e8e5451dc7 fix radiobrowser name sorting order 2019-07-21 19:54:13 +02:00
milaq ae9f168e8b do not limit country and genre results 2019-07-21 19:53:43 +02:00
milaq 1e9cc568f4 order stations in genres, countries and search results by name 2019-07-21 19:40:41 +02:00
milaq 1123f3e55b implement vtuner paging
should(tm) now be compatible with older avrs which do not get the whole listing at once
2019-07-17 15:44:35 +02:00
milaq b79dfebbea obey line character limit and get rid of warnings
for the line width, 80 is ancient. we use 120.
2019-07-10 14:06:09 +02:00
milaq b0c29f0582 major rework of backend features
* 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
2019-07-09 18:44:56 +02:00