cleanup + todo
Browse files
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 |
-
|
89 |
-
|
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')
|