Eli Schwartz
d5fa341d13
fix the linux desktop filename mapping for lrfviewer
...
In commit e7e0aea6958b1419a5e72c85da0e0f920d36fb53, this was added with
the wrong name -- the "lrfviewer" application doesn't have a hyphenated
name, oddly enough, even though it is in fact "ebook-viewer" not
"ebookviewer".
On the other hand, it's probably not worth fixing the inconsistency,
because changing desktop filenames can be (a bit) disruptive if people
have pinned or modified them, and it's not worth it just for a stray
hyphen. Changing the actual program executable name is even less worth
it...
2021-12-02 10:49:04 -05:00
Eli Schwartz
030c80a68c
fix the linux desktop filename mapping for ebook-edit
...
This was initially added in commit
efb83eb6fcd1b175e70281fc0776ca2e53422ad0 with a filler name that,
however, didn't match the usual style of desktop filenames. When the
actual desktop file was added in commit
a87092ba4f5e61aa51149c2c34880582613037f0 it didn't match the filename.
Although it was mass renamed from "tweak" to "edit" in commit
289ef5f0b9a4a87e6918744af64ff0d80f6a6c42, the word ordering was still
wrong.
As a result, application menus failed to correlate open windows to
pinned icons, or (on application menus that support it) group the
windows together.
2021-12-02 10:49:04 -05:00
Eli Schwartz
4761866fa3
tests: fix exclusion of FreeBSD code
...
calibre.devices.usbms.hal was added as a FreeBSD backend, but the test
exclusion only tries importing it on Linux. It does import on Linux, but
what we actually care about is that it imports on FreeBSD.
2021-12-02 10:49:04 -05:00
Eli Schwartz
c2f76f2932
viewer: error out if print book is used when no book is open
...
This is slightly nicer than erroring out, but with a traceback due to
trying to access a nonexistent pathtoebook attribute.
2021-12-02 10:49:04 -05:00
Eli Schwartz
14aa61d246
Do not print error messages during plugin initialization to stdout.
...
This non-fatal warning emits output during calibredb commands and breaks
scripting.
2021-12-02 10:49:04 -05:00
Eli Schwartz
2302cb6a96
De-vendor sgmllib
...
The upstream feedparser 6.0 beta introduces a hard dependency on
PyPI sgmllib3k, while 5.2.1 (released in 2015) doesn't properly support
python3 except via 2to3 and documentation about manually copying over
sgmllib.py
Let's just rely on sgmllib3k.
2021-12-02 10:49:04 -05:00
Eli Schwartz
4be01e7000
use tuple up front instead of list which must later be converted to tuple
...
We don't need a mutable type, anyway, and the only other use of it is
recreating the list as = tuple(map(...)) so why convert *again* to a
tuple?
2021-12-02 10:49:04 -05:00
Eli Schwartz
d62d8b9111
remove function attribute that was never used
2021-12-02 10:49:03 -05:00
Eli Schwartz
da8092c58a
do not use a side effect of allocating list(map(...)) to execute functions for each member of a list
2021-12-02 10:49:03 -05:00
Kovid Goyal
929879dc10
Mens Day Out by Vishwas Vasuki
...
Fixes #1538 (Another recipe)
2021-12-02 21:10:49 +05:30
Kovid Goyal
d76bf7a13d
pep8
2021-12-01 18:21:56 +05:30
Kovid Goyal
ec77b13303
Merge branch 'master' of https://github.com/davidfor/calibre
2021-12-01 18:21:09 +05:30
David
71b297dbd1
Show audiobooks and fix subtitle handling
...
Kobo now has purchased audiobooks. Plus there was an error in handling subtitle when the template returned an empty string.
2021-12-01 23:35:00 +11:00
Kovid Goyal
0b532f6974
calibre-server --manage-users: Allow managing users while the server is running
2021-12-01 11:42:17 +05:30
Kovid Goyal
872613f5f3
Fix a few places where ints were passed to PyArg_Parse instead of Py_ssize_t
2021-12-01 10:55:09 +05:30
Kovid Goyal
055f5b0979
Add the Py_SSIZE_T_CLEAN definition needed for python 3.10
...
Ideally someone needs to go through all the code and check that nothing
breaks because of this macro, but, I dont have that kind of time
2021-12-01 10:47:51 +05:30
Kovid Goyal
f2add0b2aa
calibre-server --manage-users: Add commands for automating readonly and restriction management. Fixes #1952764 [[Enhancement] command for automatically editing userdb]( https://bugs.launchpad.net/calibre/+bug/1952764 )
2021-12-01 10:45:40 +05:30
Kovid Goyal
e592768e83
DOCX Input: also remove & from font file names
2021-11-30 10:30:00 +05:30
Kovid Goyal
4fa03c00ff
Add logging for iframe ready event
2021-11-30 08:37:34 +05:30
Kovid Goyal
ba9e65df0f
Micro-optimization when reloading iframes
...
Just use a url query instead of first changing to 'about:blank'
2021-11-30 08:03:44 +05:30
Kovid Goyal
bd111dc365
No need to call init() in display book since the iframe is inited at construction time
2021-11-30 00:12:20 +05:30
Kovid Goyal
ce49820ffc
E-book viewer: Fix an occassional hang on startup at "Loading section". Fixes #1950673 [Opening books using the book reader fails to load.]( https://bugs.launchpad.net/calibre/+bug/1950673 )
2021-11-30 00:10:37 +05:30
Kovid Goyal
d8671c8e9e
better error essage when iframe receives unexpected encrypted message
2021-11-29 22:49:48 +05:30
Kovid Goyal
416fa04d3b
Make doubly sure the ready message is sent only once
2021-11-29 22:46:29 +05:30
Kovid Goyal
ee717920ba
Add names for all iframe clients
2021-11-29 22:28:39 +05:30
Kovid Goyal
61e2d4e175
EPUB 3 metadata: If the book contains a "subtitle" append it to the main title when reading metadata. Fixes #1950762 [Add subtitle to calibre title]( https://bugs.launchpad.net/calibre/+bug/1950762 )
2021-11-29 15:15:21 +05:30
Kovid Goyal
02e8bc631c
E-book viewer: Add opened books to the Windows Jump List automatically
2021-11-29 14:10:42 +05:30
Kovid Goyal
1dbbf5b73d
Fix #1952498 [[Enhancement - E-book viewer] Don't search for selection if it is a blanc space]( https://bugs.launchpad.net/calibre/+bug/1952498 )
2021-11-29 13:21:00 +05:30
Kovid Goyal
cb9d4c5416
string changes
2021-11-29 12:07:23 +05:30
Kovid Goyal
171e5f19e5
Add books dialog: When a non-book file type is added the next time the dialog is used, preselect the "All files" filter. Fixes #1952562 [Update default selection filter for manual format adds via GUI]( https://bugs.launchpad.net/calibre/+bug/1952562 )
2021-11-29 11:27:28 +05:30
Kovid Goyal
e80f16ddbf
DRYer
2021-11-29 09:56:15 +05:30
Kovid Goyal
b57bd18b12
Cleanup previous PR
2021-11-28 21:08:24 +05:30
Kovid Goyal
05352b0233
pep8
2021-11-28 20:21:30 +05:30
Kovid Goyal
8834991546
Merge branch 'master' of https://github.com/cbhaley/calibre
2021-11-28 20:20:27 +05:30
Charles Haley
0c3849411b
Add the ability to customise the toolbar library icon and window title icons on a per-library basis.
2021-11-28 11:41:23 +00:00
Kovid Goyal
2ac4c1c24e
Merge branch 'StoreWHSmithUKStore' of https://github.com/ChristopherHackett/calibre
2021-11-26 08:09:15 +05:30
Christopher Hackett
2482845430
Stores: Remove WH Smith UK
...
Searches return 0 results.
On inspection eBooks no longer appear to be sold by WH Smith.
Instead product pages for books on WH Smith contain text such as
"Also available on eBook for £xx.xx. Click here to purchase from Rakuten Kobo"
with a deep link to the relevant kobo.com product page.
Additionally the landing page of Kobo on WH Smith also just links to Kobo.com.
As such it seems wise to delist this store.
2021-11-25 17:48:37 +00:00
Kovid Goyal
0a18e51a32
Dont do qt6 transition when rebase in progress
2021-11-25 13:53:10 +05:30
Kovid Goyal
cee59dbf18
Fix #1950896 [No warning when deleting Saved search in Tag browser]( https://bugs.launchpad.net/calibre/+bug/1950896 )
2021-11-25 11:53:39 +05:30
Kovid Goyal
f0cdd690ea
Fix #1950899 [Renaming Saved seach to the same name displays a warning]( https://bugs.launchpad.net/calibre/+bug/1950899 )
2021-11-25 11:45:46 +05:30
Kovid Goyal
c45ef9be71
String changes
2021-11-25 10:45:19 +05:30
Kovid Goyal
e8a7bd2167
Get books: Update the Kobo plugin for website changes
...
Fixes #1952142 [Get Books times out connecting to Kobo](https://bugs.launchpad.net/calibre/+bug/1952142 )
2021-11-25 10:04:27 +05:30
Kovid Goyal
c904e934e1
Use a safer bypy artifact transition scheme
2021-11-24 13:45:39 +05:30
Kovid Goyal
c996912602
Only rebuild when transitioning between master and qt6
2021-11-24 13:35:46 +05:30
Kovid Goyal
58b35b8923
Fix #1952034 [[Enhancement] Add a download icon to the Download metadata button in the Edit metadata window]( https://bugs.launchpad.net/calibre/+bug/1952034 )
2021-11-24 13:16:13 +05:30
Kovid Goyal
a613277837
Remove mention of Calibre Companion from the FAQ
...
It is no longer maintained or supported. Also mention OPDS support.
Fixes #1946564 [Web user-manual Android page update](https://bugs.launchpad.net/calibre/+bug/1946564 )
2021-11-24 11:42:38 +05:30
Kovid Goyal
5adfacad4b
Fix #1950760 [[Enhancement] Move the Restore defaults button to the left of the Preferences window]( https://bugs.launchpad.net/calibre/+bug/1950760 )
2021-11-24 11:09:07 +05:30
Kovid Goyal
24a546be7b
Fix #1951637 [[Enhancement] Icon for Restore defaults button missing in Convert book window]( https://bugs.launchpad.net/calibre/+bug/1951637 )
2021-11-24 10:48:16 +05:30
Kovid Goyal
6209e84ba6
use a summary for post rebase form generation
2021-11-24 10:41:55 +05:30
Kovid Goyal
6004e588da
remove py2 only code
2021-11-24 09:46:02 +05:30