Spaces:
Running
Running
Commit
·
5c08445
1
Parent(s):
e45d828
Update main.py
Browse files
main.py
CHANGED
@@ -87,7 +87,6 @@ def proxy(url):
|
|
87 |
|
88 |
clean_url = full_url.replace('proxy/', '')
|
89 |
clean_url = encode_url(clean_url)
|
90 |
-
clean_url = clean_url.replace("COUNTER",str(random.randint(1,1000000)))
|
91 |
|
92 |
try:
|
93 |
req = requests.get(clean_url, headers=headers, stream=True, timeout=2)
|
@@ -119,7 +118,8 @@ def index():
|
|
119 |
session['current_feed'] = id
|
120 |
|
121 |
url = encode_url(url)
|
122 |
-
url = url.replace('640x480','1280x960')
|
|
|
123 |
id = feed
|
124 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
125 |
info = get_location(ip)
|
|
|
87 |
|
88 |
clean_url = full_url.replace('proxy/', '')
|
89 |
clean_url = encode_url(clean_url)
|
|
|
90 |
|
91 |
try:
|
92 |
req = requests.get(clean_url, headers=headers, stream=True, timeout=2)
|
|
|
118 |
session['current_feed'] = id
|
119 |
|
120 |
url = encode_url(url)
|
121 |
+
url = url.replace('640x480','1280x960').replace('COUNTER','')
|
122 |
+
|
123 |
id = feed
|
124 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
125 |
info = get_location(ip)
|