continuing refactor

This commit is contained in:
2026-05-03 21:20:05 -07:00
parent 77cab1bd27
commit 5534812426
50 changed files with 1004 additions and 428 deletions
+3 -3
View File
@@ -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(