Spaces:
Paused
Paused
Commit ·
a9e05c6
1
Parent(s): a29262d
New
Browse files
app.py
CHANGED
|
@@ -59,7 +59,22 @@ if selected:
|
|
| 59 |
else:
|
| 60 |
video_link = st.text_input("Link Video")
|
| 61 |
|
| 62 |
-
if selected
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
choice = st.radio('Pilih Proses:', ['Potong Video', 'Compress Video', 'Cuma Download'], 2)
|
| 64 |
|
| 65 |
if choice == 'Potong Video':
|
|
@@ -105,17 +120,3 @@ if selected:
|
|
| 105 |
session(video_info, video_file, thumbnail_file, choice)
|
| 106 |
st.text_input(f"Video '{judul_video}' setelah diproses:", convert_size(file_size))
|
| 107 |
|
| 108 |
-
else:
|
| 109 |
-
video_file = st.text_input("Pilih File", value='Best Dark Hentai Anime Series.mp4')
|
| 110 |
-
video_path = os.path.join(tempat_path, video_file)
|
| 111 |
-
thumbnail_path = cari_file(video_path.replace("mp4", "jpg"), '/home/user/app/Hasil Download')
|
| 112 |
-
if tempat =="Hasil Potong":
|
| 113 |
-
choice = 'Potong Video'
|
| 114 |
-
elif tempat =="Hasil Konversi":
|
| 115 |
-
choice = 'Compress Video'
|
| 116 |
-
else:
|
| 117 |
-
choice = ''
|
| 118 |
-
if st.button(f"Dapatkan File"):
|
| 119 |
-
file_size = os.path.getsize(video_path)
|
| 120 |
-
session("", video_path, thumbnail_path, choice)
|
| 121 |
-
st.text_input(f"Video '{video_file}' dengan size:", convert_size(file_size))
|
|
|
|
| 59 |
else:
|
| 60 |
video_link = st.text_input("Link Video")
|
| 61 |
|
| 62 |
+
if selected == 'Cek Video Penyimpanan':
|
| 63 |
+
video_file = st.text_input("Pilih File", value='Best Dark Hentai Anime Series.mp4')
|
| 64 |
+
video_path = os.path.join(tempat_path, video_file)
|
| 65 |
+
thumbnail_path = cari_file(video_path.replace("mp4", "jpg"), '/home/user/app/Hasil Download')
|
| 66 |
+
if tempat =="Hasil Potong":
|
| 67 |
+
choice = 'Potong Video'
|
| 68 |
+
elif tempat =="Hasil Konversi":
|
| 69 |
+
choice = 'Compress Video'
|
| 70 |
+
else:
|
| 71 |
+
choice = ''
|
| 72 |
+
if st.button(f"Dapatkan File"):
|
| 73 |
+
file_size = os.path.getsize(video_path)
|
| 74 |
+
session("", video_path, thumbnail_path, choice)
|
| 75 |
+
st.text_input(f"Video '{video_file}' dengan size:", convert_size(file_size))
|
| 76 |
+
|
| 77 |
+
else:
|
| 78 |
choice = st.radio('Pilih Proses:', ['Potong Video', 'Compress Video', 'Cuma Download'], 2)
|
| 79 |
|
| 80 |
if choice == 'Potong Video':
|
|
|
|
| 120 |
session(video_info, video_file, thumbnail_file, choice)
|
| 121 |
st.text_input(f"Video '{judul_video}' setelah diproses:", convert_size(file_size))
|
| 122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|