mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-16 08:05:03 -04:00
Add dosctrings
This commit is contained in:
parent
8d0dc7fb7f
commit
e73bff8d6b
12 changed files with 295 additions and 106 deletions
|
@ -240,6 +240,10 @@ class RipCore(list):
|
|||
}
|
||||
|
||||
def repair(self, max_items=None):
|
||||
"""Iterate through the failed_downloads database and retry them.
|
||||
|
||||
:param max_items: The maximum number of items to download.
|
||||
"""
|
||||
if max_items is None:
|
||||
max_items = float("inf")
|
||||
|
||||
|
@ -331,6 +335,11 @@ class RipCore(list):
|
|||
item.convert(**arguments["conversion"])
|
||||
|
||||
def scrape(self, featured_list: str):
|
||||
"""Download all of the items in a Qobuz featured list.
|
||||
|
||||
:param featured_list: The name of the list. See `rip discover --help`.
|
||||
:type featured_list: str
|
||||
"""
|
||||
self.extend(self.search("qobuz", featured_list, "featured", limit=500))
|
||||
|
||||
def get_client(self, source: str) -> Client:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue