Downloader names are in the class, not in the init.

This commit is contained in:
Roland 2021-12-28 18:17:53 -07:00
parent f5ce952da0
commit b28bacfd5b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
6 changed files with 44 additions and 20 deletions

View file

@ -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)