Spaces:
Paused
Paused
Commit ·
8cdc249
1
Parent(s): 8c99a28
Update pornhub.py
Browse files- pornhub.py +3 -3
pornhub.py
CHANGED
|
@@ -64,10 +64,10 @@ def ph_down(url, resolusi_input, start_time_str, end_time_str):
|
|
| 64 |
video_info += f"Resolusi yang tersedia: {', '.join(resolutions)}\n"
|
| 65 |
|
| 66 |
filename = download_pornhub(url, resolusi, nama_channel, judul_video, 'mp4')
|
| 67 |
-
return filename, judul_video
|
| 68 |
|
| 69 |
def ph_cut(url, resolusi_input, start_time_str, end_time_str):
|
| 70 |
-
filename, judul_video
|
| 71 |
start_time_parts = start_time_str.split(':')
|
| 72 |
end_time_parts = end_time_str.split(':')
|
| 73 |
start_time_seconds = int(start_time_parts[0]) * 3600 + int(start_time_parts[1]) * 60 + float(start_time_parts[2])
|
|
@@ -81,4 +81,4 @@ def ph_cut(url, resolusi_input, start_time_str, end_time_str):
|
|
| 81 |
subclip = video.subclip(start_time_seconds, end_time_seconds)
|
| 82 |
subclip.write_videofile(output_file_path)
|
| 83 |
|
| 84 |
-
return video_info, output_file_path
|
|
|
|
| 64 |
video_info += f"Resolusi yang tersedia: {', '.join(resolutions)}\n"
|
| 65 |
|
| 66 |
filename = download_pornhub(url, resolusi, nama_channel, judul_video, 'mp4')
|
| 67 |
+
return filename, judul_video, video_info
|
| 68 |
|
| 69 |
def ph_cut(url, resolusi_input, start_time_str, end_time_str):
|
| 70 |
+
filename, judul_video, video_info = ph_down(url, resolusi_input, start_time_str, end_time_str)
|
| 71 |
start_time_parts = start_time_str.split(':')
|
| 72 |
end_time_parts = end_time_str.split(':')
|
| 73 |
start_time_seconds = int(start_time_parts[0]) * 3600 + int(start_time_parts[1]) * 60 + float(start_time_parts[2])
|
|
|
|
| 81 |
subclip = video.subclip(start_time_seconds, end_time_seconds)
|
| 82 |
subclip.write_videofile(output_file_path)
|
| 83 |
|
| 84 |
+
return video_info, output_file_path
|