forked from rDrama/rDrama
try smth
parent
b438c25790
commit
da6e0de593
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue