GilbertClaus commited on
Commit
20b3117
1 Parent(s): f42ee2f
Files changed (2) hide show
  1. app.py +3 -3
  2. others.py +2 -2
app.py CHANGED
@@ -54,7 +54,7 @@ elif selected == option[2]:
54
  link = st.text_input("Masukkan Link", "https://t.co/c31TBe7s4W")
55
 
56
  if st.button("Trace On"):
57
- info = link_redirect(link)
58
  lokasi_file = simpan_txt('Group Torrent', info)
59
  sesi(info, lokasi_file)
60
 
@@ -63,8 +63,8 @@ elif selected == option[3]:
63
  link = st.text_input("Masukkan Link", "https://t.co/8Qes0WO3GV")
64
 
65
  if st.button("Trace On"):
66
- info = link_redirect(link)
67
- info = format_info(info)
68
 
69
  lokasi_file = simpan_txt('Group Torrent', info)
70
  sesi(info, lokasi_file)
 
54
  link = st.text_input("Masukkan Link", "https://t.co/c31TBe7s4W")
55
 
56
  if st.button("Trace On"):
57
+ info, url = link_redirect(link)
58
  lokasi_file = simpan_txt('Group Torrent', info)
59
  sesi(info, lokasi_file)
60
 
 
63
  link = st.text_input("Masukkan Link", "https://t.co/8Qes0WO3GV")
64
 
65
  if st.button("Trace On"):
66
+ info, url = link_redirect(link)
67
+ info = format_info(url)
68
 
69
  lokasi_file = simpan_txt('Group Torrent', info)
70
  sesi(info, lokasi_file)
others.py CHANGED
@@ -70,10 +70,10 @@ def link_redirect(url):
70
  info += "Final destination: \n"
71
  status = status_codes.get(response.status_code, 'Kode Status Tidak Diketahui')
72
  info += f"[{response.status_code}] : {status} \n{response.url}\n"
 
73
  else:
74
  info += "No Redirects: \n"
75
-
76
- return info
77
 
78
  def get_digits(thumbnail_url):
79
  if 'cospuri' in thumbnail_url:
 
70
  info += "Final destination: \n"
71
  status = status_codes.get(response.status_code, 'Kode Status Tidak Diketahui')
72
  info += f"[{response.status_code}] : {status} \n{response.url}\n"
73
+ return info, response.url
74
  else:
75
  info += "No Redirects: \n"
76
+ return info, url
 
77
 
78
  def get_digits(thumbnail_url):
79
  if 'cospuri' in thumbnail_url: