Spaces:
Building
Building
GilangAlRusliadi
commited on
Commit
•
9784d97
1
Parent(s):
3b90d58
Anjay
Browse files
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('
|
15 |
-
|
16 |
|
17 |
if st.button("Trace On"):
|
18 |
info = torrent_info(link, extension)
|
19 |
-
file_priority = st.selectbox('
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
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])
|