mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Download info a set in create_downloads.
This commit is contained in:
parent
8778d53fa1
commit
4a169ba43c
3 changed files with 15 additions and 6 deletions
|
|
@ -49,6 +49,9 @@ class ChannelDownloader(Downloader, ABC):
|
|||
"""
|
||||
name = 'video_channel'
|
||||
|
||||
def __repr__(self):
|
||||
return f'<ChannelDownloader name={self.name}>'
|
||||
|
||||
@classmethod
|
||||
def valid_url(cls, url) -> Tuple[bool, None]:
|
||||
for ie in ChannelIEs:
|
||||
|
|
@ -93,6 +96,9 @@ class VideoDownloader(Downloader, ABC):
|
|||
"""
|
||||
name = 'video'
|
||||
|
||||
def __repr__(self):
|
||||
return f'<VideoDownloader name={self.name}>'
|
||||
|
||||
@classmethod
|
||||
def valid_url(cls, url) -> Tuple[bool, Optional[dict]]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue