Spaces:
Paused
Paused
GilangAlRusliadi commited on
Commit ·
83856a9
1
Parent(s): 5306465
App
Browse files
app.py
CHANGED
|
@@ -38,7 +38,12 @@ if selected:
|
|
| 38 |
end_time = st.text_input("End Time", value='00:07:31.000')
|
| 39 |
|
| 40 |
if st.button(f"Download and Cut {selected}"):
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
video_file = cut_video(video_file, judul_video, start_time, end_time)
|
| 43 |
file_size = os.path.getsize(video_file)
|
| 44 |
session(video_info, video_file, cut)
|
|
|
|
| 38 |
end_time = st.text_input("End Time", value='00:07:31.000')
|
| 39 |
|
| 40 |
if st.button(f"Download and Cut {selected}"):
|
| 41 |
+
if selected == 'Youtube' or selected == 'Pornhub':
|
| 42 |
+
video_file, judul_video, video_info = fungsi(video_link, resolution)
|
| 43 |
+
elif selected == 'Iwara' or selected == 'Mega':
|
| 44 |
+
video_file, judul_video, video_info = fungsi(video_link, name)
|
| 45 |
+
else:
|
| 46 |
+
video_file, judul_video, video_info = fungsi(video_link)
|
| 47 |
video_file = cut_video(video_file, judul_video, start_time, end_time)
|
| 48 |
file_size = os.path.getsize(video_file)
|
| 49 |
session(video_info, video_file, cut)
|