fixes
This commit is contained in:
@@ -453,10 +453,10 @@ def _handle_search_result(result: Any, args: Sequence[str], config: Dict[str, An
|
||||
if storage_name.lower() == 'hydrus':
|
||||
return _handle_hydrus_file(file_hash, file_title, config, args, mime_type=mime_type)
|
||||
elif storage_name.lower() == 'local':
|
||||
return _handle_local_file(file_path, file_title, args, file_hash=file_hash)
|
||||
return _handle_local_file(file_path, file_title, config, args, file_hash=file_hash)
|
||||
elif storage_name.lower() == 'download':
|
||||
# Downloads are local files
|
||||
return _handle_local_file(file_path, file_title, args, file_hash=file_hash)
|
||||
return _handle_local_file(file_path, file_title, config, args, file_hash=file_hash)
|
||||
elif storage_name.lower() == 'debrid':
|
||||
# Extract magnet_id from result (search-file stores it in full_metadata or as custom attribute)
|
||||
if not magnet_id:
|
||||
@@ -591,7 +591,7 @@ def _handle_hydrus_file(file_hash: Optional[str], file_title: str, config: Dict[
|
||||
return 1
|
||||
|
||||
|
||||
def _handle_local_file(file_path: Optional[str], file_title: str, args: Sequence[str], file_hash: Optional[str] = None) -> int:
|
||||
def _handle_local_file(file_path: Optional[str], file_title: str, config: Dict[str, Any], args: Sequence[str], file_hash: Optional[str] = None) -> int:
|
||||
"""Handle file from local storage - auto-play in MPV if media, otherwise open with default app."""
|
||||
if not file_path:
|
||||
log("Error: No file path provided", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user