Compare commits
3 commits
master
...
redirect_s
Author | SHA1 | Date | |
---|---|---|---|
|
3139a82a82 | ||
|
053bdfa5fa | ||
|
4b814ad3e2 |
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue