'calibredb catalog' options broken: --ids and --search

Bug #1955967 reported by Levi Gruspe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

For example: `calibredb catalog --ids 1 out.xml` fails with the following error.

```
Traceback (most recent call last):
  File "/usr/bin/calibredb", line 21, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/db/cli/main.py", line 251, in main
    return run_cmd(cmd, opts, args[1:], DBCtx(opts))
  File "/usr/lib/calibre/calibre/db/cli/main.py", line 41, in run_cmd
    ret = m.main(opts, args, dbctx)
  File "/usr/lib/calibre/calibre/db/cli/cmd_catalog.py", line 131, in main
    plugin.run(dest, opts, dbctx.db)
  File "/usr/lib/calibre/calibre/library/catalogs/csv_xml.py", line 90, in run
    data = self.search_sort_db(db, opts)
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 515, in search_sort_db
    if opts.sort_by:
AttributeError: 'Values' object has no attribute 'sort_by'
```

`calibredb catalog --search "language:english" out.xml` also fails with the same error.

Version: calibre 5.34
OS: Linux

Tags: calibredb
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.