Commit Graph

46658 Commits

Author SHA1 Message Date
Kovid Goyal eacbbc1f88 Update Saechsische Zeitung 2023-03-31 22:49:34 +05:30
Kovid Goyal c466c04db4 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-31 21:43:33 +05:30
Charles Haley 8e22dd8822 Remake a change that shouldn't have been reverted. 2023-03-31 17:05:17 +01:00
Charles Haley ecb22f5e61 Revert "Simplify code for managing multiple book info dialogs"
This reverts commit 5d6664b002.
2023-03-31 15:31:12 +01:00
Kovid Goyal 5f515131a5 Content server: Add support for link_maps
Only URLs of type http(s) are allowed
2023-03-31 14:38:38 +05:30
Kovid Goyal 899ffb4e61 Fix typo causing book specific link map to contain entries for all items 2023-03-31 14:01:17 +05:30
Kovid Goyal 00832ca25b Final minor cleanup for previous PR 2023-03-31 13:38:32 +05:30
Kovid Goyal 5d6664b002 Simplify code for managing multiple book info dialogs 2023-03-31 13:33:06 +05:30
Kovid Goyal b89de1ccf1 Use the library broker for showing book info popups for non-current libraries
Also use an icon for the external links
2023-03-31 10:39:57 +05:30
Kovid Goyal 866c15f233 When adding a book import its link map for any items that dont have an existing link 2023-03-30 17:20:07 +05:30
Kovid Goyal 8447e8791f Add a test for restoring library 2023-03-30 14:37:58 +05:30
Kovid Goyal f2445ad87a Get rid of author_link_map
Also implement support for link_maps metadata in EPUB3 and PDF.
Reading proceeds by returning the link_maps if present, otherwise look
for a legacy author_link_map and return a link_maps constructed from it.

Writing simply sets link_maps, which as per the sceme above takes
precedence anyway.
2023-03-30 13:41:20 +05:30
Kovid Goyal 44001e2c60 Some link map micro optimizations I missed in my previous review 2023-03-30 13:25:54 +05:30
Kovid Goyal 6ddef11819 Use a getter for link_maps in ProxyMetadata
Also allow is_null() to work with it.
2023-03-30 08:56:19 +05:30
Kovid Goyal aabd29c571 Clean up DB code from previous PR
Note that string literals in SQLITE should be single quoted.
https://sqlite.org/quirks.html#dblquote
2023-03-30 08:37:17 +05:30
Kovid Goyal b3aafddf5a Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-30 07:27:11 +05:30
Charles Haley a4e49d85c1 Changes as discussed. Tests improved to check that the cache is cleared and that ProxyMetadata returns the link map 2023-03-27 12:53:26 +01:00
Charles Haley 26d88d1d65 Improved tests for link maps. Includes a fix for a problem the test found. 2023-03-26 11:25:01 +01:00
Kovid Goyal 6f6da27160 Similar books: Fix changing the search to be over a custom column not working. Fixes #2012803 ["Similar Books" does not search using column lookups names specified in settings](https://bugs.launchpad.net/calibre/+bug/2012803) 2023-03-26 10:03:41 +05:30
Charles Haley d95d7f4048 Fixes: the UI didn't properly delete links 2023-03-25 17:03:51 +00:00
Charles Haley ff4ed26896 This is a large commit.
DB changes:
1) Add link columns to "normalized" tables. All such in-memory tables have an attribute self.link_map.
2) Add API to set and get links for fields
3) get_metadata now includes an attribute giving the link maps for the book. Book link maps are cached.
4) ProxyMetadata can return link maps
5) Added a test for the API.

URL Scheme:
1) Added a "book-details" URL that asks calibre to open a book info window on a book in some library

Book Details:
1) You can now have multiple book info windows.
2) If an item as an associated link then that link is made available using "(item link)" link text.
3) Book info windows on books in other libraries have no links

UI:
1) the Manage Category editor presents a fourth column for links.

OPF:
1) The OPF used for backing up (metadata.opf) contains the link map for the book. Currently this isn't used, but it should be used in recover_database. I didn't do anything with OPF3.
2023-03-25 16:46:14 +00:00
Kovid Goyal b2aa59b484 Update LA Times 2023-03-24 13:00:46 +05:30
Kovid Goyal d64423a95f Update Mediapart 2023-03-24 12:56:14 +05:30
Kovid Goyal b55dd98bce Tag mapper: Ensure tag rules are unicode normalized before matching 2023-03-21 15:46:27 +05:30
Kovid Goyal 5ab7c66363 Tehelka by Areet Mahadevan 2023-03-21 14:36:15 +05:30
Aareet Mahadevan a19067e179 Update tehelka.recipe 2023-03-21 00:45:20 -07:00
Aareet Mahadevan e5a144a30e Create tehelka.recipe
Adds a recipe via RSS for tehelka.com
2023-03-21 00:44:18 -07:00
Kovid Goyal 8c238c9532 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-19 20:16:08 +05:30
Charles Haley 762c1c0a19 calibre show-book URL: clear the current search if the book to be shown is not in the search results. 2023-03-19 14:22:44 +00:00
Kovid Goyal 32618d741f Update Live Mint 2023-03-18 14:21:13 +05:30
Kovid Goyal fbec3adb2c Update The Hindu 2023-03-17 08:45:03 +05:30
Kovid Goyal 48ad093c4a The Wire by unkn0wn 2023-03-17 08:44:54 +05:30
Kovid Goyal cbf569bb06 ... v6.14.1 2023-03-16 07:49:09 +05:30
Kovid Goyal 3a43e6bb0a version 6.14.1 2023-03-16 06:23:38 +05:30
Kovid Goyal 42a4e729ca ... 2023-03-15 11:51:59 +05:30
Kovid Goyal f21f1b227b Fix a regression in the previous release that caused some generated resources to be not included in the released source tarball 2023-03-15 09:37:06 +05:30
Kovid Goyal 102427ddb8 Pass dbpath as a param to SQLite 2023-03-14 19:47:10 +05:30
Kovid Goyal 8df18d2d21 ... 2023-03-14 09:55:26 +05:30
Kovid Goyal 2d244e8996 Mention the sort by tool in the manual 2023-03-14 09:53:33 +05:30
Kovid Goyal 6be2cc69a8 Forgot that the ToC editor in the edit book tool uses a different code path. Copy over the macOS workaround. 2023-03-14 09:42:56 +05:30
Kovid Goyal 2d2cea29e0 ... 2023-03-14 09:08:38 +05:30
Kovid Goyal f035eb5272 Merge branch 'patch-1' of https://github.com/AlvaroBeiro/calibre 2023-03-14 08:36:50 +05:30
Kovid Goyal dad27a7d31 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-14 08:35:04 +05:30
Charles Haley 6a0654c9e4 Bug reported in https://www.mobileread.com/forums/showthread.php?t=352726 2023-03-13 21:25:06 +00:00
Álvaro Beiró 6e4c378228 Update el_pais.recipe
Removed unrelated text
Added author of the article
Downloads all pictures
Improves downloaded pictures quality
Downloads cover if available
Updated some feeds
Adds some style to author's name, photographer's name, picture text
Added publication_type
2023-03-13 11:15:21 +01:00
Kovid Goyal c76f2b123c Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-13 06:50:36 +05:30
Charles Haley baa80730e4 Bug #2011345: QuickView: Two errors 2023-03-12 21:12:18 +00:00
Kovid Goyal 70cfb56e1f version 6.14.0 v6.14.0 2023-03-10 05:44:41 +05:30
Kovid Goyal 26d7e65e66 pep8 2023-03-09 17:45:06 +05:30
Kovid Goyal e4e199e213 Check book: Nicer handling of line offsets
Apparently some errors from the CSS checker library reference line
numbers, so rather than using an offset prepend extra newlines. Fixes #2009735 [Private bug](https://bugs.launchpad.net/calibre/+bug/2009735)
2023-03-09 17:34:34 +05:30