forked from rDrama/rDrama
1
0
Fork 0
master
Aevann 2024-02-01 22:58:54 +02:00
parent b438c25790
commit da6e0de593
1 changed files with 3 additions and 6 deletions

View File

@ -444,11 +444,8 @@ if SITE == 'watchpeopledie.tv':
def geoblock():
ip = request.headers.get("X-Forwarded-For")
try:
country = handler.getDetails(ip).country
if country == 'AU':
abort(403, "This video is blocked in Australia.")
except Exception as e:
print(e, flush=True)
country = handler.getDetails(ip).country
if country == 'AU':
abort(403, "This video is blocked in Australia.")
return send_file('/videos/1706708037797343.mp4')