GilangAlRusliadi commited on
Commit
1762d0c
·
1 Parent(s): 8c0a5bc
Files changed (2) hide show
  1. others.py +1 -3
  2. trailer.py +1 -1
others.py CHANGED
@@ -275,7 +275,7 @@ def convert_videos(height, filename):
275
 
276
  return output_file
277
 
278
- def join_video(thumbnail_file, video_file):
279
  output_dir = '/home/user/app/Hasil Join'
280
  if not os.path.exists(output_dir):
281
  os.makedirs(output_dir)
@@ -283,8 +283,6 @@ def join_video(thumbnail_file, video_file):
283
  # Tentukan jalur ke file audio yang akan digunakan untuk intro
284
  audio_file = './sound.wav'
285
 
286
- # Dapatkan nama file video tanpa ekstensi
287
- name = os.path.splitext(video_file)[0]
288
  # Temukan file gambar yang sesuai
289
  image_file = thumbnail_file
290
 
 
275
 
276
  return output_file
277
 
278
+ def join_video(name, thumbnail_file, video_file):
279
  output_dir = '/home/user/app/Hasil Join'
280
  if not os.path.exists(output_dir):
281
  os.makedirs(output_dir)
 
283
  # Tentukan jalur ke file audio yang akan digunakan untuk intro
284
  audio_file = './sound.wav'
285
 
 
 
286
  # Temukan file gambar yang sesuai
287
  image_file = thumbnail_file
288
 
trailer.py CHANGED
@@ -22,7 +22,7 @@ def trailer(url):
22
  video_file = convert_videos(720, video_file)
23
  print("==================================================================================")
24
  # Menggabungkan video
25
- video_file = join_video(thumbnail_file, video_file)
26
  print("==================================================================================")
27
 
28
  video_info = "Series: {series}/n"
 
22
  video_file = convert_videos(720, video_file)
23
  print("==================================================================================")
24
  # Menggabungkan video
25
+ video_file = join_video(judul, thumbnail_file, video_file)
26
  print("==================================================================================")
27
 
28
  video_info = "Series: {series}/n"