1
0
Fork 0
mirror of synced 2024-06-02 18:34:37 +12:00
bulk-downloader-for-reddit/bdfr/site_downloaders/fallback_downloaders/fallback_downloader.py

15 lines
395 B
Python
Raw Normal View History

2021-05-02 21:48:25 +12:00
#!/usr/bin/env python3
# -*- 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