Add prompter and soundcloud client

This commit is contained in:
Nathan Thomas 2023-10-04 10:52:07 -07:00
parent 34277a3c67
commit 4e2709468b
6 changed files with 282 additions and 47 deletions

View file

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