ytdl-sub/ytdl_subscribe/subscriptions/youtube.py
2022-03-31 00:20:06 +00:00

18 lines
599 B
Python

from ytdl_subscribe.downloaders.youtube_downloader import YoutubeDownloader
from ytdl_subscribe.subscriptions.subscription import Subscription
class YoutubeSubscription(Subscription):
def extract_info(self):
youtube_downloader = YoutubeDownloader(
output_directory=self.output_path,
working_directory=self.WORKING_DIRECTORY,
ytdl_options=self.ytdl_opts,
)
entries = youtube_downloader.download_playlist(
playlist_id=self.options["playlist_id"]
)
for e in entries:
self.post_process_entry(e)