Commit Graph

22733 Commits

Author SHA1 Message Date
Kovid Goyal 736a16d335 ... 2014-08-19 08:52:54 +05:30
Kovid Goyal b0f52e2a4d Refactor various ebook download functions
The functions are now easily testable individually. An extra HTTP connection
when downloading a file from a URL directly is avoided. A workaround for
Project Gutenberg refusing to serve ebook files to browsers is added.
See #1354735 (When using "Get Books," all downloaded Project Gutenberg ePub books (and only Pr. Gut. books) are .2 MB, that is, they show up in my Calibre library, but they are empty. This wasn't so before as I have downloaded many Pr. Gut. ePub books in the past using “Get Books.” I have updated Calibre versions twice since this problem began. ePub downloads through other providers (eg., Feedbooks, Legimi, MobileRead) using “Get Books” functions correctly. Mac OS 10.7.5, Calibre 1.48.0.) [When using "Get Books," all downloaded Project Gutenberg ePub books (and only Pr. Gut. books) are .2 MB, that is, they show up in my Calibre library, but they are empty. This wasn't so before as I have downloaded many Pr. Gut. ePub books in the past using “Get Books.” I have updated Calibre versions twice since this problem began. ePub downloads through other providers (eg., Feedbooks, Legimi, MobileRead) using “Get Books” functions correctly. Mac OS 10.7.5, Calibre 1.48.0.](https://bugs.launchpad.net/calibre/+bug/1354735)
2014-08-18 11:43:50 +05:30
Kovid Goyal 5b9e305d5d oops 2014-08-18 09:45:24 +05:30
Kovid Goyal 2639cc26ba Fix allow_user_override not working for I() and also fix allow_user_override not working with different values for the same path. 2014-08-18 09:45:03 +05:30
Kovid Goyal 64d37eae40 Allow users to add extra mimetype icons by placing appropriately named image files in the resources/mimetypes override directory 2014-08-18 09:00:03 +05:30
Kovid Goyal cac8476f0e ... 2014-08-17 21:56:52 +05:30
Kovid Goyal 8b6a6802b7 Mark various CLI strings for translation 2014-08-17 21:53:18 +05:30
Kovid Goyal 33878116ff Tag Browser: Show format specific icons for the format entries in the Tag Browser 2014-08-17 21:17:36 +05:30
Charles Haley 8e580b926a Add the port to the mDNS description string. Permits clients to disambiguate multiple instances. 2014-08-17 15:32:51 +02:00
Kovid Goyal 60cd4ab85a ... 2014-08-17 15:44:49 +05:30
Kovid Goyal c5ee7f9080 Plugin loading: When multiple plugin classes are present in the __init__.py namespace, use the one with the qualified name that has the least components 2014-08-17 11:29:23 +05:30
Kovid Goyal 63b512054c pep8 2014-08-17 10:43:54 +05:30
Kovid Goyal 4f4b64e33b ICU: Small perf improvements by specializing the method signatures in the python icu module to avoid unnecessary creation/unwrapping of tuples when calling the methods 2014-08-17 10:20:18 +05:30
Kovid Goyal cf73771c87 Improved logging for news downloads, log performance numbers 2014-08-17 09:43:39 +05:30
Kovid Goyal af642adeb9 pep8 2014-08-17 09:01:31 +05:30
Kovid Goyal 110dfad9d1 Fix a bug in the calibre style that prevented popup arrow from showing on buttons that have a popup delay, such as the authors to author sort button in the edit metadata dialog 2014-08-16 21:03:57 +05:30
Kovid Goyal 4dbc1b5c43 Beta version bump 2014-08-16 15:32:18 +05:30
Kovid Goyal c190748d1e Various improvements to the splash screen
On windows and linux draw the splash screen in a worker process so that
the splash screen is updated properly despite the UI thread being
blocked while calibre is starting up. Fixes #1357553 [Splash screen is messed up in calibre 2.05 beta](https://bugs.launchpad.net/calibre/+bug/1357553)

Also, draw the messages in the splash screen on an opaque beackground so
that  they can always be read.

Drawing the splash screen in a separate process does not work on OS X so
we continue to use the old technique there.
2014-08-16 15:30:50 +05:30
Kovid Goyal dbf1f184b3 Fix error when changing libraries with a device connected 2014-08-16 15:09:10 +05:30
Kovid Goyal b829afe225 Refactor 2014-08-16 08:15:55 +05:30
Kovid Goyal 8a758b9c82 Only take the performance hit of banning PyQt4 imports on non frozen calibre installs 2014-08-15 17:19:05 +05:30
Kovid Goyal dd6bbb1bf1 Merge branch 'master' of https://github.com/cbhaley/calibre 2014-08-15 16:56:06 +05:30
Charles Haley d22c409669 Use the template from the device driver specified by the client, if any. 2014-08-15 13:12:48 +02:00
Kovid Goyal c12eece047 Add strings from the Qt color dialog for translation 2014-08-15 16:08:14 +05:30
Charles Haley 30fa640e24 Remove debugging pring 2014-08-15 11:25:45 +02:00
Charles Haley 9f9fc233be Add a tweak telling the content server to give the client a path computed from a template (the value of the tweak). This can happen only if the client sets the device_compatible flag. 2014-08-15 10:45:55 +02:00
Kovid Goyal 44b77cdb85 Prevent import of PyQt4 with an ImportError 2014-08-15 14:08:46 +05:30
Kovid Goyal 12f30851e0 Version bump for beta 2014-08-15 13:45:41 +05:30
Kovid Goyal 2a744a4cf9 Workaround for Qt 5 bug that causes the incorrect item to be selected when pressing the Enter key in the completion popup for search boxes.
https://bugreports.qt-project.org/browse/QTBUG-40807
2014-08-15 13:32:59 +05:30
Kovid Goyal a59f657a69 ... 2014-08-15 12:09:07 +05:30
Kovid Goyal 5cd4b3930f Get the ghost ondevice column fix to also work on windows 2014-08-15 11:41:49 +05:30
Kovid Goyal e6b883e212 Get rid of pointless guard against Qt < 4.7 2014-08-15 10:53:14 +05:30
Kovid Goyal 4937ecf44d Workaround for a bug in Qt 5 that caused a ghost of the ondevice column to become visible sometimes when switching libraries. 2014-08-15 10:43:08 +05:30
Kovid Goyal f4c0d0933e ... 2014-08-15 10:26:28 +05:30
Kovid Goyal 50c3dbbc53 Fix some custom keyboard shortcuts that use the shift key not working 2014-08-14 22:46:58 +05:30
Kovid Goyal 2f5b725806 Edit Book: Allow keyboard shortcuts to be assigned to the change case actions 2014-08-14 21:13:51 +05:30
Kovid Goyal c5b9cae0b7 ... 2014-08-14 17:37:19 +05:30
Kovid Goyal e93ba3f832 ... 2014-08-14 17:36:05 +05:30
Kovid Goyal 43d7a23a8a Fix a regression that broke syntax highlighting in the compare books tool 2014-08-14 15:58:27 +05:30
Kovid Goyal e9daa12caf Ensure all .ui files are rebuilt once for Qt 5 when running from source 2014-08-14 14:47:01 +05:30
Kovid Goyal 1fbed30a67 ... 2014-08-14 14:18:43 +05:30
Kovid Goyal 837211f437 ... 2014-08-13 22:14:11 +05:30
Kovid Goyal 3868c8eef3 ... 2014-08-13 10:51:19 +05:30
Kovid Goyal 2b69bc7070 Fix drag and drop of files with non-URL safe characters in their names broken by changes in QUrl in Qt 5. Also get drag and drop of images from Chromium on linux working. 2014-08-13 10:01:55 +05:30
Kovid Goyal e46e6a9194 Prevent long saved searches from making the saved search dialog too wide 2014-08-12 16:07:57 +05:30
Kovid Goyal 66b506abce Fix #1355488 [(Enhancement) Add a restart button to Configuration Warning](https://bugs.launchpad.net/calibre/+bug/1355488) 2014-08-12 08:51:10 +05:30
Kovid Goyal 44276ef20b Convenience function to convert epub to azw3 directly without invoking the conversion pipeline at all 2014-08-11 19:19:36 +05:30
Charles Haley 3d09465ef7 It appears that they changed the affiliate ID on 1 Aug. 2014-08-11 10:44:33 +02:00
Kovid Goyal feb19878e8 Comic Input: Sort pages placed in sub-folders correctly (as long as all pages have the same number of parent folders). 2014-08-11 09:35:16 +05:30
Kovid Goyal e848adb5fb Get rid of no longer needed workaround for WebKit remove formatting bug 2014-08-11 09:21:59 +05:30