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
This commit is contained in:
milaq 2019-08-28 22:37:57 +02:00
parent 053bdfa5fa
commit 3139a82a82

View file

@ -275,16 +275,5 @@ def get_station_icon():
def vtuner_redirect(url): def vtuner_redirect(url):
url = 'http://radioyamaha.vtuner.com/setupapp/yamaha/mp3/YradioSample.mp3' url = 'http://radioyamaha.vtuner.com/foo.mp3'
response = redirect(url, code='302 Object moved') return redirect(url, code=302)
headers = dict(response.headers)
headers.update({'Content-Type': 'text/html',
'Connection': 'close',
'X-Powered-By': 'ASP.NET',
'Server': 'Microsoft-IIS/7.5',
'Cache-Control': 'private'})
response.headers = headers
response.data = "<head><title>Object moved</title></head>\n" \
"<body><h1>Object Moved</h1>This object may be found " \
"<a HREF=\"%s\">here</a>.</body>\n" % url
return response