BraydenMoore commited on
Commit
f42ef1d
·
1 Parent(s): cc6c746

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -53,6 +53,10 @@ def proxy(url):
53
  'Upgrade-Insecure-Requests': '1',
54
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'
55
  }
 
 
 
 
56
  try:
57
  if '.jpg' in clean_url and 'stream' not in clean_url:
58
  req = requests.get(clean_url, headers=headers, timeout=3)
 
53
  'Upgrade-Insecure-Requests': '1',
54
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'
55
  }
56
+
57
+ clean_url = url.replace('proxy/', '')
58
+ print('Cleaned URL:', clean_url)
59
+
60
  try:
61
  if '.jpg' in clean_url and 'stream' not in clean_url:
62
  req = requests.get(clean_url, headers=headers, timeout=3)