nficano commited on
Commit
938b4f8
·
1 Parent(s): c2eb20f

cleanup + todo

Browse files
Files changed (1) hide show
  1. pytube/contrib/playlist.py +3 -6
pytube/contrib/playlist.py CHANGED
@@ -81,14 +81,11 @@ class Playlist(object):
81
  for link in self.video_urls:
82
  yt = YouTube(link)
83
 
 
84
  dl_stream = yt.streams.filter(
85
  progressive=True, subtype='mp4',
86
  ).order_by('resolution').desc().first()
87
 
88
- if download_path is not None:
89
- logger.debug('download path: ' + download_path)
90
- dl_stream.download(download_path)
91
- else:
92
- dl_stream.download()
93
-
94
  logger.debug('download complete')
 
81
  for link in self.video_urls:
82
  yt = YouTube(link)
83
 
84
+ # TODO: this should not be hardcoded to a single user's preference
85
  dl_stream = yt.streams.filter(
86
  progressive=True, subtype='mp4',
87
  ).order_by('resolution').desc().first()
88
 
89
+ logger.debug('download path: %s', download_path)
90
+ dl_stream.download(download_path)
 
 
 
 
91
  logger.debug('download complete')