From 4e9a5cd3e54a079b02a0b0a33ceeb338e4269cc3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 22:13:52 +0200 Subject: [PATCH] try smth --- files/routes/static.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index f8c6f4e67..8caa7e57c 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -440,8 +440,10 @@ if SITE == 'watchpeopledie.tv': def geoblock(): ip = request.headers.get("X-Forwarded-For") req = requests.get(f'http://ipinfo.io/{ip}/json') - country = json.loads(req.text)['country'] + country = json.loads(req.text) print(country, flush=True) - if country == 'AU': - abort(403, "This video is blocked in Australia.") + # ['country'] + # print(country, flush=True) + # if country == 'AU': + # abort(403, "This video is blocked in Australia.") return send_file('/videos/1706708037797343.mp4')