GilbertClaus commited on
Commit
408bf2c
·
1 Parent(s): 6cc3623

Update youtube.py

Browse files
Files changed (1) hide show
  1. 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
- return '', judul_video, video_info
 
 
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