forked from rDrama/rDrama
try smth
parent
b438c25790
commit
da6e0de593
|
@ -444,11 +444,8 @@ if SITE == 'watchpeopledie.tv':
|
||||||
def geoblock():
|
def geoblock():
|
||||||
ip = request.headers.get("X-Forwarded-For")
|
ip = request.headers.get("X-Forwarded-For")
|
||||||
|
|
||||||
try:
|
|
||||||
country = handler.getDetails(ip).country
|
country = handler.getDetails(ip).country
|
||||||
if country == 'AU':
|
if country == 'AU':
|
||||||
abort(403, "This video is blocked in Australia.")
|
abort(403, "This video is blocked in Australia.")
|
||||||
except Exception as e:
|
|
||||||
print(e, flush=True)
|
|
||||||
|
|
||||||
return send_file('/videos/1706708037797343.mp4')
|
return send_file('/videos/1706708037797343.mp4')
|
||||||
|
|
Loading…
Reference in New Issue