From 3024c3de3237c20aa2404d1c4f2066f83c03bdc7 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 19 May 2024 22:46:32 +1000 Subject: [PATCH] fix: Podcast urls being misread --- server.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index ac07bee..0155473 100644 --- a/server.py +++ b/server.py @@ -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/') 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')