mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 05:09:58 -05:00
Downloader names are in the class, not in the init.
This commit is contained in:
parent
f5ce952da0
commit
b28bacfd5b
6 changed files with 44 additions and 20 deletions
|
|
@ -13,6 +13,8 @@ logger = logger.getChild(__name__)
|
|||
|
||||
|
||||
class ArchiveDownloader(Downloader, ABC):
|
||||
name = 'archive'
|
||||
|
||||
@classmethod
|
||||
def valid_url(cls, url: str) -> Tuple[bool, None]:
|
||||
"""
|
||||
|
|
@ -29,4 +31,4 @@ class ArchiveDownloader(Downloader, ABC):
|
|||
|
||||
|
||||
# Archive downloader is the last downloader which should be used.
|
||||
archive_downloader = ArchiveDownloader('archive', priority=100)
|
||||
archive_downloader = ArchiveDownloader(priority=100)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue