25551 Commits

Author SHA1 Message Date
Kovid Goyal
20caf3ac99 pep8 cleanup of kobo/driver.py
Kobo driver: Add an option to modify the styling in books being sent to
the device, based on a template on the device. Fixes #1207151 [Append and modify CSS when sending epubs to Kobo devices](https://bugs.launchpad.net/calibre/+bug/1207151)
2013-08-01 11:21:52 +05:30
David Forrester
08819cb340 Kobo driver CSS modification should use mimetype 2013-08-01 11:14:53 +05:30
David Forrester
7cbad00c25 Append and modify CSS when sending epubs to Kobo devices
This allows users to have a "kobo_extra.css" file in the root of their
device containing CSS rules. This will be appended to all stylesheets in
the epub. As well, if the extra rules contain an @page rule, any
existing @page rules will be stripped from the stylesheets. Finally, if
any of the extra rules include "widows" and "orphans" settings, these
are stripped from the rules in the stylesheets.
2013-08-01 11:14:53 +05:30
Kovid Goyal
d38dffa86d Download tags from Amazon
When downloading metadata from Amazon, convert the amazon categories into
tags. You can turn this off by going to Preferences->Metadata download
and configuring the Amazon source. Fixes #1206763 [[Enhancement] Get tags from Amazon](https://bugs.launchpad.net/calibre/+bug/1206763)
2013-08-01 10:35:31 +05:30
Kovid Goyal
fda8ce7abb newdb: get_metadata() should have sorted formats list in mi.formats 2013-08-01 09:31:02 +05:30
Kovid Goyal
20f414a7f5 Avoid unnecessary tracebacks when backing up metadata for deleted books 2013-08-01 09:10:40 +05:30
Kovid Goyal
49eb89a59a Update PC World 2013-08-01 08:27:30 +05:30
Kovid Goyal
d62006bc11 QDateTime->datetime faster and more robust
Fix editing of book metadata failing when its timestamp is out of range
for the system. Fixes #1191599 [Cannot edit simple ebook metadatas](https://bugs.launchpad.net/calibre/+bug/1191599)
2013-08-01 08:23:06 +05:30
Kovid Goyal
340fda187c Merge branch 'master' of https://github.com/brandizzi/calibre
Fix renaming a user category to the same name it already has erases the
user category. Fixes #1207131 [Renaming a user category to the same name it already has erase this same user category](https://bugs.launchpad.net/calibre/+bug/1207131)
2013-08-01 07:47:05 +05:30
Kovid Goyal
e2c3bb40a5 newdb: Fix default value for identifiers is mutable 2013-08-01 07:41:49 +05:30
Adam Victor Nazareth Brandizzi
ccb3eff05b Fix the issue of renaming user categories to the same name it already has resulting in deletion of the category (see https://bugs.launchpad.net/calibre/+bug/1207131) 2013-07-31 22:18:40 -03:00
Tomasz Długosz
bd456d1b86 add unicode_literals in koobe plugin 2013-07-31 16:53:27 +02:00
Kovid Goyal
8713ebb0b1 newdb: Fix duplicates during adding creating blank book record
Fixes #1206830 [Problem when adding duplicate title](https://bugs.launchpad.net/calibre/+bug/1206830)
2013-07-31 18:00:10 +05:30
Kovid Goyal
c075b6b401 ... 2013-07-31 17:40:52 +05:30
Kovid Goyal
66fdd41e70 ... 2013-07-31 17:32:07 +05:30
Kovid Goyal
ca77e75617 ... 2013-07-31 17:30:03 +05:30
Kovid Goyal
34f57e27eb Nicer interface to library metadata backups 2013-07-31 13:57:47 +05:30
Kovid Goyal
929fa49d7a Move mirror domain name to fosshub.com 2013-07-31 13:33:58 +05:30
Kovid Goyal
f4283b20ba Get Books: Add plugin for cdp.pl
Merge branch 'stores' of https://github.com/t3d/calibre
2013-07-31 09:44:35 +05:30
Kovid Goyal
1e163cbe10 Fix crash when using %e with strftime on windows
Fixes #1206705 [strftime crashes under Windows with %e](https://bugs.launchpad.net/calibre/+bug/1206705)
2013-07-31 09:37:26 +05:30
Tomasz Długosz
1c5cb39141 detect formats in cdp 2013-07-31 00:58:30 +02:00
Tomasz Długosz
a6048a6ba7 cdp plugin 2013-07-31 00:45:25 +02:00
Kovid Goyal
1d9a3dcb5f newdb: Fix displaying the languages column
Displaying the languages column for a book with no languages
was causing an error.
2013-07-30 17:30:27 +05:30
Kovid Goyal
00a6f4593c Get Books: Add plugin for ebooki.allegro.pl store
Merge branch 'stores' of https://github.com/t3d/calibre
2013-07-30 15:12:29 +05:30
Kovid Goyal
60cf6c4c5d newdb: Fix book_id->row mapping broken when asearch is in effect 2013-07-30 14:33:20 +05:30
Tomasz Długosz
e2db758ace improve allegro plugin 2013-07-30 10:25:18 +02:00
Kovid Goyal
11ab767266 Fix drag 'n drop of cover onto conversion dialog not working 2013-07-30 13:38:56 +05:30
Kovid Goyal
4dbf49855a ... 2013-07-30 11:55:58 +05:30
Kovid Goyal
47b927f5bc Make ignore_errors also work for setting covers 2013-07-30 11:52:51 +05:30
Kovid Goyal
2fd8022e9e Ensure that an error in set_metadata does not cause the memory and disk
data to diverge
2013-07-30 11:46:54 +05:30
Kovid Goyal
82d7bd3d57 newdb: Speed up set_metadata() by not committing the db after individual field writes 2013-07-30 10:56:04 +05:30
Kovid Goyal
c6daf258be Factor out the code to update the GUI, so it can be re-used 2013-07-30 10:32:51 +05:30
Kovid Goyal
f731f2803b newdb: Fix sorting of view not stable 2013-07-30 09:25:48 +05:30
Tomasz Długosz
e9e3114b23 plugin for ebooki.allegro.pl 2013-07-30 00:39:25 +02:00
Kovid Goyal
99d9db82f7 ... 2013-07-29 22:17:14 +05:30
Kovid Goyal
0fdbe5a753 Device drivers: Explicitly fsync() all files when writing to devices 2013-07-29 22:07:12 +05:30
Kovid Goyal
9c562b35c3 ... 2013-07-29 21:20:55 +05:30
Kovid Goyal
fa4506a019 oops 2013-07-29 18:36:21 +05:30
Kovid Goyal
3490af8df7 Ensure that undefined datetimes are always written as UNDEFINED_DATE to
the db
2013-07-29 15:42:10 +05:30
Kovid Goyal
a68fe4409f Do not search virtual fields on when searching 'all'
Searching virtual fields (such as marked) ona prefix less search
disables search caching.
2013-07-29 15:41:01 +05:30
Kovid Goyal
c07f612f6b newdb: Do not cache searches that search on virtual fields like marked,
since there is no safe way to update such a cache.
2013-07-29 14:20:38 +05:30
Kovid Goyal
2831d39da4 newdb: Enable sorting on the marked field for the find duplicated plugin 2013-07-29 12:51:16 +05:30
Kovid Goyal
6cffe0d105 newdb: Fix undefined custom dates not displaying as blank, depending on time zone 2013-07-29 08:46:57 +05:30
Kovid Goyal
0356894fca Fix apsw not included in linux binary builds 2013-07-29 08:35:34 +05:30
Kovid Goyal
0b03222286 ... 2013-07-28 16:41:55 +05:30
Kovid Goyal
4d90d17192 Fix test failures caused by removal of virtual fields from get_metadata 2013-07-28 11:33:24 +05:30
Kovid Goyal
49c82ededa Add has_id() to db.data in the new backend
Also speed up has_id() and all_book_ids()
2013-07-28 11:30:41 +05:30
Kovid Goyal
f8ad733e25 calibredb: Add a new clone command
calibredb: Add a new clone command to create clones of libraries with
the same custom columns, virtual libraries, etc. as the current library.
2013-07-28 09:44:45 +05:30
Kovid Goyal
fac9845f90 pep8 2013-07-28 09:35:53 +05:30
Kovid Goyal
7f3b6c1f7d MOBI metadata: Handle cover/thumbnail exth fields with null pointers
MOBI metadata: Do not fail to set metadata in MOBI files if they have
EXTH fields with NULL pointers to a cover or thumbnail. Fixes #1205757 [Metadata edits not sticking](https://bugs.launchpad.net/calibre/+bug/1205757)
2013-07-28 09:34:58 +05:30