Commit graph

12 commits

Author SHA1 Message Date
milaq 7c3161aff9 Make YCast aware of played streams
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.
2019-08-22 20:30:29 +02:00
milaq dd28e64c61 vTuner: Unify 'to_xml' to get a root element for every function 2019-08-19 13:35:25 +02:00
milaq 244759e408 Use upstream proposed XML API import and naming 2019-08-18 14:19:54 +02:00
milaq 4accb0bef1 Paging: Improve sanity checks and add in 'DirCount' support
Some AVRs want to know the folder item count before entering it.
2019-08-17 23:52:55 +02:00
milaq 533d4a041d paging: set complete item count for folders
allows proper paging for yamaha AVRs
2019-08-17 20:23:40 +02:00
milaq 92756a7144 Fix up station parameters
Correct wording for bandwidth and bookmark.

Also add 'Relia' station reliability parameter.
Use hardcoded mean value of 3 for now (seems to be 1-5).
2019-08-14 14:50:02 +02:00
milaq 63b87dfa95 Do not send a proper XML header on init token response
The vTuner API doesn't do it and some AVRs have problems with it.
Thanks to @AlfredJ91 for the heads-up.
2019-08-14 14:29:54 +02:00
milaq 9e1bb5e17b Append bogus parameter to every target url
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.
2019-08-12 20:12:12 +02:00
milaq 4fb591a18b vtuner pages: always calculate element count 2019-08-12 14:59:51 +02:00
milaq 83ad5733ed strip https in vtuner station urls 2019-07-21 20:07:26 +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 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