diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-09 14:50:05 +0000 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-09 14:50:05 +0000 |
commit | 9ce37c420eab96910379fddb280a4d5b25cd0e67 (patch) | |
tree | 7281a4b03a220abfe86e6cea7019d6ba3e6af230 /src/youload_playlist.py | |
parent | d204b513c10e2c0dba13fc050cde8c7e4da03990 (diff) | |
download | youload-9ce37c420eab96910379fddb280a4d5b25cd0e67.tar.gz youload-9ce37c420eab96910379fddb280a4d5b25cd0e67.tar.bz2 youload-9ce37c420eab96910379fddb280a4d5b25cd0e67.zip |
Added cli interface
Diffstat (limited to 'src/youload_playlist.py')
-rw-r--r-- | src/youload_playlist.py | 2 |
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) |