Add fallback downloader

This commit is contained in:
Serene-Arc
2021-05-02 19:48:25 +10:00
committed by Serene
parent a86a41e6a5
commit a8c2136270
7 changed files with 99 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
# coding=utf-8
from abc import ABC, abstractmethod
from bdfr.site_downloaders.base_downloader import BaseDownloader
class BaseFallbackDownloader(BaseDownloader, ABC):
@staticmethod
@abstractmethod
def can_handle_link(url: str) -> bool:
"""Returns whether the fallback downloader can download this link"""
raise NotImplementedError