fix: Podcast urls being misread
All checks were successful
Build Docker / Build Image (push) Successful in 43s
All checks were successful
Build Docker / Build Image (push) Successful in 43s
This commit is contained in:
parent
d936a8f96b
commit
3024c3de32
11
server.py
11
server.py
@ -439,13 +439,20 @@ def hnsdoh_acme():
|
|||||||
@app.route('/ID1')
|
@app.route('/ID1')
|
||||||
def ID1():
|
def ID1():
|
||||||
# Proxy to ID1 url
|
# Proxy to ID1 url
|
||||||
req = requests.get('https://id1.woodburn.au')
|
req = requests.get('https://id1.woodburn.au/ID1')
|
||||||
|
return make_response(req.content, 200, {'Content-Type': req.headers['Content-Type']})
|
||||||
|
|
||||||
|
@app.route('/ID1/')
|
||||||
|
def ID1_slash():
|
||||||
|
# Proxy to ID1 url
|
||||||
|
req = requests.get('https://id1.woodburn.au/ID1/')
|
||||||
return make_response(req.content, 200, {'Content-Type': req.headers['Content-Type']})
|
return make_response(req.content, 200, {'Content-Type': req.headers['Content-Type']})
|
||||||
|
|
||||||
@app.route('/ID1/<path:path>')
|
@app.route('/ID1/<path:path>')
|
||||||
def ID1_path(path):
|
def ID1_path(path):
|
||||||
# Proxy to ID1 url
|
# Proxy to ID1 url
|
||||||
req = requests.get('https://id1.woodburn.au/' + path)
|
print('https://id1.woodburn.au/ID1/' + path)
|
||||||
|
req = requests.get('https://id1.woodburn.au/ID1/' + path)
|
||||||
return make_response(req.content, 200, {'Content-Type': req.headers['Content-Type']})
|
return make_response(req.content, 200, {'Content-Type': req.headers['Content-Type']})
|
||||||
|
|
||||||
@app.route('/ID1.xml')
|
@app.route('/ID1.xml')
|
||||||
|
Loading…
Reference in New Issue
Block a user