mirror of
https://github.com/wassname/xbsjsonedit.git
synced 2026-06-27 14:47:35 +08:00
markdown
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
main:
|
||||
./xbsjsonedit --jsonbackup ~/Downloads/xbs_backup_20241109104310.json --print -n
|
||||
+4
-1
@@ -383,7 +383,10 @@ def digin(parent, parent_id, path, search_term, operation, commit=False, indent=
|
||||
|
||||
for tag in item["tags"]:
|
||||
tags += tag + ", "
|
||||
print ("{:<4} - {}{} [{}]".format(item["id"], indent, item["title"], tags[:-2]))
|
||||
|
||||
t = item.get("title", "").replace("[", "(").replace("]", ")")
|
||||
u = item.get("url", "")
|
||||
print(f"- [{t}]({u})")
|
||||
|
||||
if operation == "DupURLs":
|
||||
log_urls (item["url"], path, item["id"], parent, parent_id, item_index)
|
||||
|
||||
Reference in New Issue
Block a user