51053 Commits

Author SHA1 Message Date
j-howell
45d7c87462 Allow import of KFX files from MTP Kindle devices rev 2 2025-01-30 08:01:29 -05:00
Kovid Goyal
27feac817d
Merge branch 'icon_rules-only-category-current-library' of https://github.com/un-pogaz/calibre 2025-01-30 07:57:01 +05:30
un-pogaz
80afeac321 reapply sort after filter library change 2025-01-29 23:52:51 +01:00
un-pogaz
9a20755d70 extend to filter also the values 2025-01-29 23:42:34 +01:00
un-pogaz
01610583cf add option to show only category in current library 2025-01-29 22:55:50 +01:00
un-pogaz
2c68207773 add a note in the ui about the icon value rules 2025-01-29 22:24:15 +01:00
Kovid Goyal
fb58ebdea4
Merge branch 'fix-icon_rules-initialize-fail' of https://github.com/un-pogaz/calibre 2025-01-29 18:13:48 +05:30
un-pogaz
c4d25cdaa7 fix exception in icon rulers for custom columns
if their don't exist in the current library, fail to initialize the contents
2025-01-29 13:25:16 +01:00
Kovid Goyal
ea4aebf878
Cleanup previous PR
There was a leftover str(id).
2025-01-29 17:09:54 +05:30
Kovid Goyal
8dc6a4ea9d
Merge branch 'master' of https://github.com/cbhaley/calibre
Template dialog: Respect the tweak for title/series when editing save to
disk and send to device templates.

Fixes #2096841 [Export template not working as shown in preview](https://bugs.launchpad.net/calibre/+bug/2096841)
2025-01-29 17:08:40 +05:30
Charles Haley
7496a39d6f Enhancement #2096841: in save to disk and send to device, use the customized metadata in the template editor. 2025-01-29 11:27:30 +00:00
Kovid Goyal
062cd1a647
pep8 2025-01-29 06:08:04 +05:30
Kovid Goyal
04ab86e607
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-29 06:07:00 +05:30
Charles Haley
95bfb6c1b2 Add editing of icons, templates, and for_children to the tag browser / icon rule viewer. 2025-01-28 21:25:13 +00:00
Charles Haley
9dd67cd7e8 Make partitioning icons respect the "Show value icons" option instead of the "show category icons" one 2025-01-28 21:24:08 +00:00
Kovid Goyal
0b4a3a8661
.format() to f-string from previous PR 2025-01-28 23:52:11 +05:30
Kovid Goyal
9c5e88c332
Merge branch 'flint-conversion' of https://github.com/un-pogaz/calibre 2025-01-28 23:41:59 +05:30
un-pogaz
c15f118a5d Additional safe conversion of % format 2025-01-28 17:23:21 +01:00
un-pogaz
e5a65f69ec Automated conversion of % format specifiers
Using flint. Change has been filtred
because even on safe mode, flint can be too aggressive.
2025-01-28 17:23:13 +01:00
Kovid Goyal
c8d9e0c24e
Nicer error message when get_properties fails 2025-01-28 19:20:11 +05:30
Kovid Goyal
7d0bba4ca7
Add code to MTP test for putting a file 2025-01-28 11:00:28 +05:30
Kovid Goyal
186cf59ec4
... 2025-01-28 09:54:36 +05:30
Kovid Goyal
31afd1c9aa
... 2025-01-27 11:20:33 +05:30
Kovid Goyal
8fa56620df
Remove unneeded exclusions 2025-01-27 11:15:47 +05:30
Kovid Goyal
25ed9a53f9
Remove unneeded exclusion 2025-01-27 11:13:41 +05:30
Kovid Goyal
024b9cc0fd
Remove unneeded exclusion 2025-01-27 11:12:08 +05:30
Kovid Goyal
82796bccd5
Manually fix long lines created by automated format string conversion 2025-01-27 11:09:48 +05:30
Kovid Goyal
5c7dc9613b
Automated conversion of % format specifiers
Using ruff. Does not change any translatable strings.
There are still several thousand usages of % left that ruff wont
auto-convert. Get to them someday.
2025-01-27 10:58:48 +05:30
Kovid Goyal
39f7f616bc
More uneeded exclusions 2025-01-27 10:29:00 +05:30
Kovid Goyal
ddd580c85c
Remove more exclusions 2025-01-27 10:26:01 +05:30
Kovid Goyal
68f8d4925e
Remove unneeded exclusion 2025-01-27 09:44:16 +05:30
Kovid Goyal
1715558c8f
Bump openssl version
Bump to latest in 3.1 series. There are apparently some silly security
scanners that complain about the DLLs even though there are no actual
bugs in them that impact their usage in calibre. Oh well.

Fixes #2096749 [Private bug](https://bugs.launchpad.net/calibre/+bug/2096749)
2025-01-27 09:39:53 +05:30
Kovid Goyal
e13e07a660
... 2025-01-26 11:13:26 +05:30
Kovid Goyal
fd75807a9b
Output the hresult when getting properties fails 2025-01-26 11:11:27 +05:30
Kovid Goyal
43f9daff11
... 2025-01-26 11:00:14 +05:30
Kovid Goyal
4de8ffb6f7
... 2025-01-26 10:38:00 +05:30
Kovid Goyal
f172c67706
./setup.py check now uses strict checking
No need to maintain two ruff configs. And strict checking happens in
editors/CI automatically, making my life a bit easier.

Remove the no longer needed --strict and --pep8 options from the check
command.
2025-01-26 10:35:19 +05:30
Kovid Goyal
c6c7ed4dbe
pep8 2025-01-26 10:14:58 +05:30
Kovid Goyal
90a97caa3b
Merge branch 'make-check-strict-happy' of https://github.com/un-pogaz/calibre 2025-01-26 10:10:15 +05:30
Kovid Goyal
5a0e9aae9e
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-26 09:58:40 +05:30
Charles Haley
f939f85498 Improvement found while testing: give selected books to the formatter in CoverView. 2025-01-25 20:17:10 +00:00
Charles Haley
855520cc08 Redid all the changes that got lost somehow. Wish I understood what happened. 2025-01-25 14:54:11 +00:00
un-pogaz
73828a55ae make "setup.py check --strict" happy 2025-01-25 15:44:09 +01:00
Charles Haley
f84b4a7829 Preferences / Look & feel changes
- Add infrastructure for automatic handling of lazy operations (now lazy_initialize). There is a new class LazyConfigWidgetBase that supports the lazy operations. It is a drop-in replacement for ConfigWidgetBase
- Convert tab widgets: tb display, tb_partitioning, quickview

Over time I will convert other look & feel tabs, if for no other reason than to speed up opening that set of preferences.
2025-01-25 12:14:45 +00:00
Kovid Goyal
c78cfdd926
Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-25 17:31:50 +05:30
Kovid Goyal
c10832387d
Cleanup previous PR 2025-01-25 17:31:21 +05:30
Charles Haley
4f0e469433 Fix bug in tag browser where cancelling a category icon file getter dialog removes the existing 2025-01-25 09:19:33 +00:00
Kovid Goyal
7e61ea2248
Merge branch 'ruff-pep8-strict' of https://github.com/un-pogaz/calibre 2025-01-25 13:56:37 +05:30
Kovid Goyal
2cfe2ba648
Add symbolic names for various known MTP error codes 2025-01-25 11:03:19 +05:30
Kovid Goyal
452058a4aa
DRYer 2025-01-25 10:36:21 +05:30