Commit graph

35 commits

Author SHA1 Message Date
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 4a2ecd9821 add support for start and howmany request arguments
seems like some AVRs use these for paging.
also unify request extraction logic on the way.
2019-08-12 20:12:01 +02:00
milaq 4fb591a18b vtuner pages: always calculate element count 2019-08-12 14:59:51 +02:00
milaq bfa203d160 added minimum version check to main 2019-08-12 14:16:07 +02:00
milaq 787bf0a6e9 add more confirmed working devices
thanks to @pafodie and @vooba for reporting
2019-08-12 14:06:30 +02:00
milaq 83ad5733ed strip https in vtuner station urls 2019-07-21 20:07:26 +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 3114e5b226 add python requests as requirement 2019-07-17 15:15:31 +02:00
milaq 925cb30e77 more python packaging preparations 2019-07-10 14:58:14 +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
Micha LaQua 4927524df9 readme: add notes for catchall DNS (all vendors) 2019-06-26 16:50:06 +02:00
Micha LaQua 2360bff63b
Add confirmed working Marantz device
Thanks to jrawle for reporting
2019-06-23 22:29:23 +02:00
milaq 169877e42b some AVRs expect a content-length header
also use a correct length hex value as token response as at least some
yamaha avrs are having trouble with 'malformed' tokens
2019-01-25 00:54:18 +01:00
Micha LaQua 0bba96f07d
fix up nginx example
for compatibility with other vendors
2019-01-24 22:30:11 +01:00
Micha LaQua b89e1034a4
readme: add in vtuner fallback domain name notes 2019-01-24 22:23:27 +01:00
Micha LaQua 2965f71f7d
readme: add in notes for onkyo avrs 2019-01-24 22:14:00 +01:00
milaq 5888815cd8 add compatibility for other vendors
do not hardcode initurl to get easy compatibility with other initurls (e.g. onkyo)
2019-01-24 22:07:06 +01:00
Micha LaQua f0756bd5f6
Add more theoretically supported devices 2019-01-22 13:50:32 +01:00
Micha LaQua 8c32aa17ee
polish and clean up readme 2019-01-22 12:39:05 +01:00
milaq 5e2733f841 clean up duplicate header code 2019-01-21 02:59:21 +01:00
Étienne Loks a1e6fdb8f8 handle vtuner api token requests
A token request is now made at initialization. Reply to this
request with an arbitrary token.
2019-01-21 02:46:37 +01:00
milaq c085974137 use host address from headers for redirects
allow compatibility with other addresses (e.g. AVRs from other manufacturers)
2019-01-21 02:38:56 +01:00
milaq 891384350c allow help call w/o stations.yml 2019-01-21 01:57:50 +01:00
Micha LaQua e53c8ea9c9
readme: add confirmed working devices 2019-01-20 23:06:28 +01:00
milaq f983d2500d polish readme and add nginx and systemd examples
also move examples into separate subdir to keep it tidy
2018-11-06 01:05:37 +01:00
milaq 61d584c8be better handling of common errors 2018-07-23 18:36:47 +02:00
milaq 4432f1ef96 make listen address and port configurable via commandline 2018-07-23 18:28:43 +02:00
milaq e28347a1a4 add proper gitignore 2018-07-23 18:28:43 +02:00
milaq 8170ebf9cc clarify readme a tad 2018-07-23 18:28:29 +02:00
milaq ef54ad932e do not redirect to listen_port
the initial request arrives at port 80 either way.

also, in case we are not listening on all interfaces and/or firewall rules are
in the way this leads to the receiver not querying an accessible url.
2018-07-23 14:34:21 +02:00
milaq bbc4e55e55 initial commit 2018-07-23 14:25:01 +02:00