continuing refactor
This commit is contained in:
+3
-3
@@ -30,7 +30,7 @@ from SYS import pipeline as ctx
|
||||
class UrlItem:
|
||||
url: str
|
||||
hash: str
|
||||
store: str
|
||||
instance: str
|
||||
title: str = ""
|
||||
size: int | None = None
|
||||
ext: str = ""
|
||||
@@ -47,7 +47,7 @@ class Get_Url(Cmdlet):
|
||||
summary="List url associated with a file, or search urls by pattern",
|
||||
usage='@1 | get-url OR get-url -url "https://www.youtube.com/watch?v=xx"',
|
||||
arg=[SharedArgs.QUERY,
|
||||
SharedArgs.STORE,
|
||||
SharedArgs.INSTANCE,
|
||||
SharedArgs.URL],
|
||||
detail=[
|
||||
"- Get url for file: @1 | get-url (requires hash+store from result)",
|
||||
@@ -494,7 +494,7 @@ class Get_Url(Cmdlet):
|
||||
|
||||
# Extract hash and store from result or args
|
||||
file_hash = query_hash or get_field(result, "hash")
|
||||
store_name = parsed.get("store") or get_field(result, "store")
|
||||
store_name = parsed.get("instance") or get_field(result, "store")
|
||||
|
||||
if not file_hash:
|
||||
log(
|
||||
|
||||
Reference in New Issue
Block a user