Spaces:
Paused
Paused
Commit ·
408bf2c
1
Parent(s): 6cc3623
Update youtube.py
Browse files- youtube.py +3 -1
youtube.py
CHANGED
|
@@ -54,7 +54,9 @@ def youtube(link, resolusi_input):
|
|
| 54 |
stream = yt.streams.filter(progressive=True, resolution=resolusi).first()
|
| 55 |
|
| 56 |
if stream is None:
|
| 57 |
-
|
|
|
|
|
|
|
| 58 |
else:
|
| 59 |
filename = download_youtube(stream.url, nama_channel, judul_video)
|
| 60 |
return filename, judul_video, video_info
|
|
|
|
| 54 |
stream = yt.streams.filter(progressive=True, resolution=resolusi).first()
|
| 55 |
|
| 56 |
if stream is None:
|
| 57 |
+
stream = yt.streams.filter(progressive=True, resolution='360p').first()
|
| 58 |
+
filename = download_youtube(stream.url, nama_channel, judul_video)
|
| 59 |
+
return filename, judul_video, video_info
|
| 60 |
else:
|
| 61 |
filename = download_youtube(stream.url, nama_channel, judul_video)
|
| 62 |
return filename, judul_video, video_info
|