GilangAlRusliadi commited on
Commit
9784d97
1 Parent(s): 3b90d58
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -11,13 +11,12 @@ with st.sidebar:
11
  if selected == 'Magnet Link':
12
  st.title("Magnet Link Torrent")
13
  link = st.text_input("Masukkan Magnet Link", "")
14
- extension = st.selectbox('Select Extension', ['.mp4', '.zip'])
15
-
16
 
17
  if st.button("Trace On"):
18
  info = torrent_info(link, extension)
19
- file_priority = st.selectbox('Select File', info)
20
 
21
- if st.button("Download"):
22
- selected_index = int(file_priority.split('.')[0])
23
- downloaded_files = torrent_download(link, [selected_index])
 
11
  if selected == 'Magnet Link':
12
  st.title("Magnet Link Torrent")
13
  link = st.text_input("Masukkan Magnet Link", "")
14
+ extension = st.selectbox('Pilih Extension', ['.mp4', '.zip'])
 
15
 
16
  if st.button("Trace On"):
17
  info = torrent_info(link, extension)
18
+ file_priority = st.selectbox('Pilih File', info)
19
 
20
+ if st.button("Download"):
21
+ selected_index = int(file_priority.split('.')[0])
22
+ downloaded_files = torrent_download(link, [selected_index])