Spaces:
Paused
Paused
Commit ·
92ee4d4
1
Parent(s): 065ed91
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def download_youtube(url, nama_channel, new_name, extension):
|
|
| 10 |
response = requests.get(url, stream=True)
|
| 11 |
file_name = new_name + "." + extension
|
| 12 |
|
| 13 |
-
download = f"/
|
| 14 |
if not os.path.exists(download):
|
| 15 |
os.makedirs(download)
|
| 16 |
|
|
@@ -73,7 +73,7 @@ def cut_video(link, resolusi_input, start_time_str, end_time_str):
|
|
| 73 |
end_time_parts = end_time_str.split(':')
|
| 74 |
start_time_seconds = int(start_time_parts[0]) * 3600 + int(start_time_parts[1]) * 60 + float(start_time_parts[2])
|
| 75 |
end_time_seconds = int(end_time_parts[0]) * 3600 + int(end_time_parts[1]) * 60 + float(end_time_parts[2])
|
| 76 |
-
potong = "Hasil Potong"
|
| 77 |
if not os.path.exists(potong):
|
| 78 |
os.makedirs(potong)
|
| 79 |
output_file_path = f'{potong}/{judul_video}.mp4'
|
|
|
|
| 10 |
response = requests.get(url, stream=True)
|
| 11 |
file_name = new_name + "." + extension
|
| 12 |
|
| 13 |
+
download = f"/home/user/app/Hasil Download/Youtube/{nama_channel}"
|
| 14 |
if not os.path.exists(download):
|
| 15 |
os.makedirs(download)
|
| 16 |
|
|
|
|
| 73 |
end_time_parts = end_time_str.split(':')
|
| 74 |
start_time_seconds = int(start_time_parts[0]) * 3600 + int(start_time_parts[1]) * 60 + float(start_time_parts[2])
|
| 75 |
end_time_seconds = int(end_time_parts[0]) * 3600 + int(end_time_parts[1]) * 60 + float(end_time_parts[2])
|
| 76 |
+
potong = "/home/user/app/Hasil Potong"
|
| 77 |
if not os.path.exists(potong):
|
| 78 |
os.makedirs(potong)
|
| 79 |
output_file_path = f'{potong}/{judul_video}.mp4'
|