Spaces:
Running
Running
Commit
·
4541be9
1
Parent(s):
4a91ed8
Update main.py
Browse files
main.py
CHANGED
@@ -74,7 +74,7 @@ def index():
|
|
74 |
session['current_feed'] = feed
|
75 |
|
76 |
#url = feed_dict[feed]['url']
|
77 |
-
url = live_urls[feed].replace('COUNTER',str(random.randint(0,
|
78 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
79 |
info = get_ip_info(ip)
|
80 |
country = (pycountry.countries.get(alpha_2=info['country']).name).lower()
|
|
|
74 |
session['current_feed'] = feed
|
75 |
|
76 |
#url = feed_dict[feed]['url']
|
77 |
+
url = live_urls[feed].replace('COUNTER',str(random.randint(0,100000)))
|
78 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
79 |
info = get_ip_info(ip)
|
80 |
country = (pycountry.countries.get(alpha_2=info['country']).name).lower()
|