update
This commit is contained in:
@@ -251,6 +251,12 @@ class Local(Provider):
|
||||
folder_name = str(kwargs.get("folder_name") or "").strip()
|
||||
if not folder_name and not direct_export_download:
|
||||
folder_name = self._folder_name_from_pipe(kwargs.get("pipe_obj"))
|
||||
if not folder_name and not direct_export_download:
|
||||
title_hint = str(kwargs.get("title") or "").strip()
|
||||
if not title_hint:
|
||||
title_hint = source_path.stem.replace("_", " ").strip()
|
||||
if title_hint:
|
||||
folder_name = title_hint
|
||||
|
||||
export_root = destination_root
|
||||
if folder_name and not direct_export_download:
|
||||
|
||||
@@ -612,6 +612,13 @@ class OpenLibrary(Provider):
|
||||
TABLE_AUTO_STAGES = {
|
||||
"openlibrary.edition": ["download-file"],
|
||||
}
|
||||
QUERY_ARG_CHOICES = {
|
||||
"quality": ["high", "medium", "low"],
|
||||
"language": [
|
||||
"english", "spanish", "french", "german", "italian",
|
||||
"portuguese", "polish", "russian", "chinese", "japanese",
|
||||
],
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def config_schema(cls) -> List[Dict[str, Any]]:
|
||||
@@ -1175,7 +1182,7 @@ class OpenLibrary(Provider):
|
||||
|
||||
Returns a dict with the downloaded path and SearchResult when successful.
|
||||
"""
|
||||
self,
|
||||
sr = self.search_result_from_url(url)
|
||||
if sr is None:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user