Add scrape option

Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
nathom 2021-07-09 14:19:13 -07:00
parent e6dfc3f507
commit 5cd3913976
2 changed files with 12 additions and 0 deletions

View file

@ -316,6 +316,9 @@ class MusicDL(list):
if arguments["conversion"]["enabled"]:
item.convert(**arguments["conversion"])
def scrape(self, featured_list: str):
self.extend(self.search("qobuz", featured_list, "featured", limit=500))
def get_client(self, source: str) -> Client:
"""Get a client given the source and log in.