Spaces:
Paused
Paused
Commit ·
b8039b9
1
Parent(s): f4e9c88
Nambah
Browse files
app.py
CHANGED
|
@@ -22,7 +22,17 @@ if selected:
|
|
| 22 |
index = options.index(selected)
|
| 23 |
fungsi = functions[index]
|
| 24 |
st.title(f"{selected} Video Downloader and Cutter")
|
| 25 |
-
st.write(f"Download dan potong sebagian video {selected}.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 27 |
video_link = st.text_input("Link Video", value='https://www.youtube.com/watch?v=ZGltvcmVSAk')
|
| 28 |
resolution = st.selectbox("Pilih Resolusi", (360, 480, 720), 2)
|
|
@@ -30,14 +40,6 @@ if selected:
|
|
| 30 |
name = st.text_input("Nama File")
|
| 31 |
video_link = st.text_input("Link Video")
|
| 32 |
|
| 33 |
-
directory = '/home/user/app/Hasil Konversi'
|
| 34 |
-
files = os.listdir(directory)
|
| 35 |
-
if not files:
|
| 36 |
-
st.write('Folder is empty!')
|
| 37 |
-
else:
|
| 38 |
-
st.write('Files in directory:', directory)
|
| 39 |
-
for file in files:
|
| 40 |
-
st.write(file)
|
| 41 |
else:
|
| 42 |
video_link = st.text_input("Link Video")
|
| 43 |
|
|
|
|
| 22 |
index = options.index(selected)
|
| 23 |
fungsi = functions[index]
|
| 24 |
st.title(f"{selected} Video Downloader and Cutter")
|
| 25 |
+
st.write(f"Download dan potong sebagian video {selected}.")
|
| 26 |
+
|
| 27 |
+
directory = '/home/user/app/Hasil Konversi'
|
| 28 |
+
files = os.listdir(directory)
|
| 29 |
+
if not files:
|
| 30 |
+
st.write('Folder is empty!')
|
| 31 |
+
else:
|
| 32 |
+
st.write('Files in directory:', directory)
|
| 33 |
+
for file in files:
|
| 34 |
+
st.write(file)
|
| 35 |
+
|
| 36 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 37 |
video_link = st.text_input("Link Video", value='https://www.youtube.com/watch?v=ZGltvcmVSAk')
|
| 38 |
resolution = st.selectbox("Pilih Resolusi", (360, 480, 720), 2)
|
|
|
|
| 40 |
name = st.text_input("Nama File")
|
| 41 |
video_link = st.text_input("Link Video")
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
else:
|
| 44 |
video_link = st.text_input("Link Video")
|
| 45 |
|