mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -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
|
|
@ -15,6 +15,9 @@ logger = logger.getChild(__name__)
|
|||
class ArchiveDownloader(Downloader, ABC):
|
||||
name = 'archive'
|
||||
|
||||
def __repr__(self):
|
||||
return f'<ArchiveDownloader name={self.name}>'
|
||||
|
||||
@classmethod
|
||||
def valid_url(cls, url: str) -> Tuple[bool, None]:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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