sane-bt-search: convert to nix-shell and increase verbosity

This commit is contained in:
2023-01-14 10:23:50 +00:00
parent 2e03f47edc
commit 30e7eb9ab6

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.natsort ps.requests ])"
""" """
usage: sane-bt-search <query_string> usage: sane-bt-search <query_string>
@@ -67,5 +68,6 @@ q = " ".join(sys.argv[1:])
client = Client() client = Client()
res = client.query(q) res = client.query(q)
print(f"found {len(res)} result(s)")
for r in res[:5]: for r in res[:5]:
print(r) print(r)