GilbertClaus commited on
Commit
1a67b32
·
1 Parent(s): 9709f8c
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,9 +41,9 @@ if selected:
41
  # Iterasi melalui semua direktori dan sub-direktori
42
  for root, dirs, files in os.walk(tempat_path):
43
  for file in files:
44
- file_path = os.path.join(root, file)
45
  # Tambahkan path file ke list
46
- all_files.append(file_path)
47
 
48
  # Buat variabel untuk menyimpan jumlah baris dalam text area
49
  num_lines = len(all_files)
@@ -61,8 +61,8 @@ if selected:
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":
 
41
  # Iterasi melalui semua direktori dan sub-direktori
42
  for root, dirs, files in os.walk(tempat_path):
43
  for file in files:
44
+ # file_path = os.path.join(root, file)
45
  # Tambahkan path file ke list
46
+ all_files.append(file)
47
 
48
  # Buat variabel untuk menyimpan jumlah baris dalam text area
49
  num_lines = len(all_files)
 
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 = cari_file(video_file, tempat_path)
65
+ thumbnail_path = cari_file(video_file.replace("mp4", "jpg"), '/home/user/app/Hasil Download')
66
  if tempat =="Hasil Potong":
67
  choice = 'Potong Video'
68
  elif tempat =="Hasil Konversi":