Skip to content

Commit afbe0c5

Browse files
committed
fix links-open
1 parent 5554925 commit afbe0c5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

library/createdb/links_add.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
arggroups,
1212
argparse_utils,
1313
consts,
14-
db_utils,
1514
devices,
1615
objects,
1716
printing,
@@ -398,9 +397,6 @@ def links_add() -> None:
398397
if args.selenium:
399398
web.quit_selenium(args)
400399

401-
if not args.db["media"].detect_fts():
402-
db_utils.optimize(args)
403-
404400

405401
def links_update() -> None:
406402
args = parse_args(consts.SC.links_update, usage=usage.links_update)

library/playback/media_printer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ def media_printer(args, data, units: str | None = "media", media_len=None) -> No
102102
print_args = getattr(args, "print", "")
103103
cols = getattr(args, "cols", [])
104104
m_columns = db_utils.columns(args, "media")
105-
print(action)
106105

107-
if (args.limit or args.timeout_size) and "path" in data[0].keys():
106+
if (
107+
(args.limit or args.timeout_size)
108+
and "path" in data[0].keys()
109+
and action in ("media", "filesystem", "listen", "watch")
110+
):
108111
new_data = []
109112
MOVED_COUNT = 0
110113
for d in data:

0 commit comments

Comments
 (0)