Compare commits

...

3 commits

Author SHA1 Message Date
milaq
3139a82a82 Some Yamaha AVRs have a whitelist built in
Let's find out what is whitelisted.
1st try: Just use the radioyamaha.vtuner.com baseurl without any rewrites
2019-08-28 22:37:57 +02:00
milaq
053bdfa5fa Redirect every station request to the vtuner test media file
Just return a vtuner url for every station play request to find out whether the affected models have a url redirect whitelist.
Obviously the URL will return a 404 but we should see whether the redirect worked in the log and via packet capture.
2019-08-28 15:09:00 +02:00
milaq
4b814ad3e2 first try at completely emulating the vtuner 302s 2019-08-27 02:30:52 +02:00

View file

@ -226,7 +226,7 @@ def get_stream_url():
logging.error("Could not get station with id '%s'", stationid)
abort(404)
logging.debug("Station with ID '%s' requested", station.id)
return redirect(station.url, code=302)
return vtuner_redirect(station.url)
@app.route('/' + PATH_ROOT + '/' + PATH_STATION)
@ -272,3 +272,8 @@ def get_station_icon():
response = make_response(station_icon)
response.headers.set('Content-Type', 'image/jpeg')
return response
def vtuner_redirect(url):
url = 'http://radioyamaha.vtuner.com/foo.mp3'
return redirect(url, code=302)