21628 Commits

Author SHA1 Message Date
Kovid Goyal
8e202e4e2b Fix Book details popup window not being updated when editing metadata in the main window 2014-02-26 18:31:14 +05:30
Kovid Goyal
f1c3e38dc9 Add a mechanism for device drivers to update books in the calibre database
Merge branch 'master' of https://github.com/cbhaley/calibre
2014-02-26 18:08:15 +05:30
Charles Haley
8ede2d4666 Make the set of books to refresh into a local variable buy using it as an object instance instead of by assignment. 2014-02-26 12:36:46 +01:00
Charles Haley
cab3cba813 Pass the current row to refresh_ids so that the book_data signal is emitted. 2014-02-26 12:11:21 +01:00
Charles Haley
deea793c21 1) Change the new sync method to return a list of changed book ids instead of a simple boolean.
2) Make the wireless device driver synchronization more robust in the face of multiple libraries where the sync column might not always exist.
2014-02-26 11:30:22 +01:00
Kovid Goyal
59efd0a9c7 Edit book: Fix editor not marking the book as modified when doing a Replace All that does not affect any currently open files. 2014-02-26 13:54:21 +05:30
Tomasz Długosz
726613a2ba fix book id fetching from legimi store 2014-02-25 22:32:24 +01:00
Tomasz Długosz
6a2b5e71f1 strip formats in Publio store 2014-02-25 21:50:12 +01:00
Tomasz Długosz
4a04e0895e bump store version
wasn't bumped on 3b040f585dd526ee7fb2c9981d64d48350876559
2014-02-25 21:06:57 +01:00
Kovid Goyal
54d7657527 ... 2014-02-25 22:57:42 +05:30
Kovid Goyal
f5301dbfef Windows: Use a separate worker process to move files to the recycle bin. Fixes the problem of the recycle bin icon not being updated when deleting books into an empty recycle bin. Also avoids the overhead of launching a new, short-lived worker process for every delete. 2014-02-25 22:45:41 +05:30
Charles Haley
8fe4db7040 Infrastructure for allowing a device to "synchronize" data with calibre's database. The exact meaning of "synchronize" is left to the device. This implementation adds almost zero overhead (nanoseconds per book) if the device driver does not do any synchronization.
During book matching in gui2.device, whenever a book on the device is matched to a book in the DB, the (new) device method synchronize_with_db is called. It can copy information from the device to calibre's db or vice versa. If it returns True then the book's metadata is updated from calibre's DB even if it otherwise would not be. This permits the synchronization process to request that data in calibre be unconditionally sent to the device.

Note that the synchronize_with_db method is called on the GUI thread. It is the device driver's responsibility to be threadsafe with respect to the device manager thread.

A lightly-tested implementation in the wireless driver is included to show how the new method might be used. It implements syncing a yes/no "is read" column and a "read date" column from the device to calibre.
2014-02-25 14:41:53 +01:00
Kovid Goyal
2e20f1aa83 calibredb: When deleting books/formats wait for deleted files to be moved to recycle bin, before quitting 2014-02-25 18:06:55 +05:30
Kovid Goyal
22d59bac3c Edit book: Add an option to automatically beautify individual files whenever they are opened for editing. Look under "Editor Settings" in the Edit Book Preferences. 2014-02-25 09:37:43 +05:30
Kovid Goyal
9937b2b6b8 Fix test failing because of change in behavior of dateutil module 2014-02-25 08:19:09 +05:30
Charles Haley
62c78290c1 Allow the empty string when writing to bool custom columns. Bulk edit uses the empty string for None, at least in this case. 2014-02-24 18:44:35 +01:00
Charles Haley
215f86ccd2 Add a debug line in hopes that it will help (eventually) find why in some cases the incorrect series sort values are being sent to CC. 2014-02-24 10:03:12 +01:00
Kovid Goyal
0ff4a12538 ... 2014-02-24 09:49:14 +05:30
Kovid Goyal
e5b381f460 RTF Output: Fix invalid RTF being produced when the text contains a double backslash. Fixes #1268118 [epub converted produces invalid .rtf file](https://bugs.launchpad.net/calibre/+bug/1268118)
Also updates to various Get Books plugins

Merge branch 'master' of https://github.com/user-none/calibre
2014-02-24 08:24:04 +05:30
John Schember
7d27ee5803 Update store versions. 2014-02-23 20:42:18 -05:00
John Schember
89e3dfb97a Remove eharlequin store because it no longer works. 2014-02-23 20:39:49 -05:00
John Schember
8782ec322a Fix smashworks store not showing any results. 2014-02-23 20:37:28 -05:00
John Schember
18871b185d Fix kobo store not showing any results. 2014-02-23 20:12:22 -05:00
John Schember
3b040f585d Fix amazon store plugins not showing cover. 2014-02-23 19:37:45 -05:00
John Schember
c71690d510 Fix Bug #1268118: epub converted produces invalid .rtf file 2014-02-23 16:04:42 -05:00
Kovid Goyal
b2b2f61e96 ... 2014-02-23 22:51:21 +05:30
Kovid Goyal
8039327eda Edit book: Fix option to disable showing the character before cursor not working 2014-02-23 22:48:39 +05:30
Kovid Goyal
ec2567b580 Py3 compat for https downloader 2014-02-23 18:24:31 +05:30
Kovid Goyal
1e64794997 Add support for HTTP proxies to the HTTPS fetcher 2014-02-23 15:24:15 +05:30
Kovid Goyal
39ec9d5960 Use the TLSv1 SSL protocol version by default 2014-02-23 13:38:42 +05:30
Kovid Goyal
4e1cd543f5 When downloading recipes/get books plugins use HTTPS 2014-02-23 13:25:22 +05:30
Kovid Goyal
f969151e9f Utility code to download https URLs securely 2014-02-23 13:13:53 +05:30
Kovid Goyal
f73fc4670f Add test for ssl module being importable 2014-02-23 12:52:37 +05:30
Kovid Goyal
225a7e0723 E-book viewer: When displaying metadata for the book, also display custom column metadata 2014-02-22 16:43:52 +05:30
Kovid Goyal
5da59094c9 Show an error message if the user tries to edit books on the device instead of editing the last selected book in the library 2014-02-22 15:28:14 +05:30
Kovid Goyal
26656583fc ... 2014-02-22 14:37:21 +05:30
Kovid Goyal
c551895b83 Clean up error handling in the linux installer 2014-02-22 13:31:11 +05:30
Kovid Goyal
ddca079000 Linux binary build: Create an uninstall script named calibre-uninstall
Fixes #1283154 [linux uninstaller (/usr/bin/calibre-uninstall)](https://bugs.launchpad.net/calibre/+bug/1283154)
2014-02-22 12:42:58 +05:30
Kovid Goyal
64cb14a094 EPUB Output: If the output profile is set to one of the Nook profiles, do not use shorthand CSS properties as the Nook cannot handle them. 2014-02-22 08:21:33 +05:30
Kovid Goyal
70779d9ff4 Conversion: Fix incorrect CSS being generated when converting files that have <img> tags with width or height attributes that contain fractional numbers. Fixes #1283108 [Private bug](https://bugs.launchpad.net/calibre/+bug/1283108) 2014-02-22 08:07:08 +05:30
Kovid Goyal
f6b32541e6 Fix #1282970 [Editor crashes when changing <p> tag to <h1>](https://bugs.launchpad.net/calibre/+bug/1282970) 2014-02-21 16:29:38 +05:30
Kovid Goyal
70d96e7a07 Fix #1282898 [Broken Edit Metadata in Bulk commits 1.25.0](https://bugs.launchpad.net/calibre/+bug/1282898) 2014-02-21 13:15:55 +05:30
Kovid Goyal
15f9e96441 version 1.25 2014-02-21 09:09:59 +05:30
Kovid Goyal
15c3a466e5 Edit book: Fix an error that occurs if more than 100 checkpoints are created. Fixes #1282583 [book editor error when adding 100 items](https://bugs.launchpad.net/calibre/+bug/1282583) 2014-02-20 21:13:09 +05:30
Kovid Goyal
526e7882bb Nicer icon for beautify file
From http://findicons.com/icon/207143/flower?id=207153 (freeware
non-commercial)
2014-02-20 10:36:14 +05:30
Kovid Goyal
48dbfa26c9 Bulk metadata edit search and replace: Do not allow the user to perform the search and replace until she enters a search expression. See #1282357 (error produced during "Edit metadata in bulk" for replacing a value) 2014-02-20 10:15:13 +05:30
Kovid Goyal
ab983165a4 Conversion: Fix parsing of HTML 5 documents that are also valid XML but use non-namespaced inline svg 2014-02-20 09:34:47 +05:30
Kovid Goyal
46383bf264 Conversion: When converting SVG images for formats that do not support SVG and the SVG has an invalid viewBox, ignore the viewBox instead of aborting conversion 2014-02-20 09:09:18 +05:30
Kovid Goyal
dd54ccc0d0 Catalogs: Fix multiple exclusion rules causing entries to be duplicated. Fixes #1281296 [Catalog shows duplicates of all entries](https://bugs.launchpad.net/calibre/+bug/1281296)
Merge branch 'master' of https://github.com/GRiker/calibre
2014-02-19 17:27:21 +05:30
Gregory Riker
3aa7697f1a Fix for lp:1281296, multiple entries for books when processing multiple exclusion rules. 2014-02-19 04:48:57 -07:00