fix: Podcast urls being misread
All checks were successful
Build Docker / Build Image (push) Successful in 43s

This commit is contained in:
Nathan Woodburn 2024-05-19 22:46:32 +10:00
parent d936a8f96b
commit 3024c3de32
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -439,13 +439,20 @@ def hnsdoh_acme():
@app.route('/ID1')
def ID1():
# 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']})
@app.route('/ID1/<path:path>')
def ID1_path(path):
# 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']})
@app.route('/ID1.xml')