mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-20 02:05:41 -04:00
Add prompter and soundcloud client
This commit is contained in:
parent
34277a3c67
commit
4e2709468b
6 changed files with 282 additions and 47 deletions
|
@ -41,7 +41,7 @@ class Downloadable(ABC):
|
|||
class BasicDownloadable(Downloadable):
|
||||
"""Just downloads a URL."""
|
||||
|
||||
def __init__(self, session, url: str):
|
||||
def __init__(self, session: aiohttp.ClientSession, url: str):
|
||||
self.session = session
|
||||
self.url = url
|
||||
|
||||
|
@ -59,7 +59,7 @@ class DeezerDownloadable(Downloadable):
|
|||
def __init__(self, resp: dict):
|
||||
self.resp = resp
|
||||
|
||||
async def _download(self, path: str) -> bool:
|
||||
async def _download(self, path: str):
|
||||
raise NotImplemented
|
||||
|
||||
|
||||
|
@ -67,7 +67,7 @@ class TidalDownloadable(Downloadable):
|
|||
def __init__(self, info: dict):
|
||||
self.info = info
|
||||
|
||||
async def _download(self, path: str) -> bool:
|
||||
async def _download(self, path: str):
|
||||
raise NotImplemented
|
||||
|
||||
|
||||
|
@ -75,5 +75,5 @@ class SoundcloudDownloadable(Downloadable):
|
|||
def __init__(self, info: dict):
|
||||
self.info = info
|
||||
|
||||
async def _download(self, path: str) -> bool:
|
||||
async def _download(self, path: str):
|
||||
raise NotImplemented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue