GilbertClaus commited on
Commit
225f816
·
1 Parent(s): 8cdc249

Update youtube.py

Browse files
Files changed (1) hide show
  1. youtube.py +2 -1
youtube.py CHANGED
@@ -39,6 +39,7 @@ def format_number(number):
39
  return f"{round(number / 1000000000)} miliar"
40
 
41
  def yt_down(link, resolusi_input, start_time_str, end_time_str):
 
42
  yt = YouTube(link)
43
  nama_channel = yt.author
44
  judul_video = yt.title.replace('/', '-').replace('\\', '-')
@@ -84,4 +85,4 @@ def yt_cut(link, resolusi_input, start_time_str, end_time_str):
84
  subclip = video.subclip(start_time_seconds, end_time_seconds)
85
  subclip.write_videofile(output_file_path)
86
 
87
- return video_info, output_file_path, output_file_path
 
39
  return f"{round(number / 1000000000)} miliar"
40
 
41
  def yt_down(link, resolusi_input, start_time_str, end_time_str):
42
+ video_info = ""
43
  yt = YouTube(link)
44
  nama_channel = yt.author
45
  judul_video = yt.title.replace('/', '-').replace('\\', '-')
 
85
  subclip = video.subclip(start_time_seconds, end_time_seconds)
86
  subclip.write_videofile(output_file_path)
87
 
88
+ return video_info, output_file_path