GilbertClaus commited on
Commit
89f4698
·
verified ·
1 Parent(s): f807651

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -11,7 +11,7 @@ from trailer import trailer
11
  from others import *
12
 
13
  # Navigasi Sidebar
14
- options = ['Youtube', 'Pornhub', 'Iwara', 'Mega', 'Rule34', 'Paipancon', 'Trailer']
15
  with st.sidebar:
16
  selected = option_menu("Video Downloader", options,
17
  icons=['play', 'fire', 'star', 'moon','gear', 'house', 'lightning'], menu_icon="cast", default_index=0)
@@ -29,6 +29,17 @@ if selected:
29
  elif selected == 'Iwara' or selected == 'Mega':
30
  name = st.text_input("Nama File")
31
  video_link = st.text_input("Link Video")
 
 
 
 
 
 
 
 
 
 
 
32
  else:
33
  video_link = st.text_input("Link Video")
34
 
 
11
  from others import *
12
 
13
  # Navigasi Sidebar
14
+ options = ['Youtube', 'Pornhub', 'Iwara', 'Mega', 'Rule34', 'Paipancon', 'Trailer', 'X']
15
  with st.sidebar:
16
  selected = option_menu("Video Downloader", options,
17
  icons=['play', 'fire', 'star', 'moon','gear', 'house', 'lightning'], menu_icon="cast", default_index=0)
 
29
  elif selected == 'Iwara' or selected == 'Mega':
30
  name = st.text_input("Nama File")
31
  video_link = st.text_input("Link Video")
32
+ elif selected == 'X':
33
+
34
+ directory = '/home/user/app/Hasil Konversi'
35
+ files = os.listdir(directory)
36
+
37
+ if not files:
38
+ st.write('Folder is empty!')
39
+ else:
40
+ st.write('Files in directory:', directory)
41
+ for file in files:
42
+ st.write(file)
43
  else:
44
  video_link = st.text_input("Link Video")
45