2021-05-02 21:48:25 +12:00
|
|
|
#!/usr/bin/env python3
|
2022-12-20 12:32:37 +13:00
|
|
|
# -*- coding: utf-8 -*-
|
2021-05-02 21:48:25 +12:00
|
|
|
|
|
|
|
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
|