Spaces:
Paused
Paused
Commit ·
060de07
1
Parent(s): 2ede999
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def format_number(number):
|
|
| 42 |
def cut_video(link, resolusi_input, start_time_str, end_time_str):
|
| 43 |
yt = YouTube(link)
|
| 44 |
nama_channel = yt.author
|
| 45 |
-
judul_video = yt.title.replace('/', ' ')
|
| 46 |
tanggal_upload = yt.publish_date.strftime("%-d %B %Y")
|
| 47 |
jumlah_viewer = format_number(yt.views)
|
| 48 |
selisih_hari = (datetime.now() - yt.publish_date).days
|
|
|
|
| 42 |
def cut_video(link, resolusi_input, start_time_str, end_time_str):
|
| 43 |
yt = YouTube(link)
|
| 44 |
nama_channel = yt.author
|
| 45 |
+
judul_video = yt.title.replace('/', '-').replace('\\', '-')
|
| 46 |
tanggal_upload = yt.publish_date.strftime("%-d %B %Y")
|
| 47 |
jumlah_viewer = format_number(yt.views)
|
| 48 |
selisih_hari = (datetime.now() - yt.publish_date).days
|