aboutsummaryrefslogtreecommitdiffstats
path: root/src/youload_playlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/youload_playlist.py')
-rw-r--r--src/youload_playlist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/youload_playlist.py b/src/youload_playlist.py
index 4121d85..1d62ee5 100644
--- a/src/youload_playlist.py
+++ b/src/youload_playlist.py
@@ -20,9 +20,11 @@ class YouLoadPlayList:
return f"Title: {video.title}, Size: {video_size} MB"
def prepare_for_download(self) -> None:
+ """Gets the playlist ready for download. Creates the output folder and that stuff."""
os.mkdir(self.folder_name)
def download_video(self, video_num: int) -> str:
+ """Download video at 'video_num'"""
video = self.yt_playlist.videos[video_num]
video_size = video.streams.get_highest_resolution().filesize
video.streams.get_highest_resolution().download(output_path=self.folder_name)