From 9ce37c420eab96910379fddb280a4d5b25cd0e67 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Thu, 9 Nov 2023 07:50:05 -0700 Subject: Added cli interface --- src/youload_playlist.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/youload_playlist.py') 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) -- cgit v1.2.3