Commit Graph

38755 Commits

Author SHA1 Message Date
Kovid Goyal 78b2f586ac Merge branch 'enlarge_nature_cover' of https://github.com/jn8029/calibre 2019-07-30 14:29:28 +05:30
jn8029 f6c9cde09f enlarge cover img resolution by change the url
kindle app on larger tablets does not show cover
if the cover img resolution is too low.
2019-07-30 16:55:29 +08:00
Kovid Goyal b3e1632b07 Merge branch 'enlarge_newyorker_cover_img' of https://github.com/jn8029/calibre 2019-07-29 13:37:26 +05:30
jn8029 18316e4eda if the cover img resolution is too low, kindle wouldn't show it.
replacing the original src img size with a bigger size solves this issue
this is discuessed in
https://www.mobileread.com/forums/showthread.php?t=293114
2019-07-29 15:11:03 +08:00
Kovid Goyal 05ae6894a5 ... 2019-07-29 10:48:54 +05:30
Kovid Goyal 7d4695f37e Merge branch 'comicbookinfo_language' of https://github.com/PhiBabin/calibre 2019-07-28 05:21:06 +05:30
Philippe Babin 24874293c1 Add missing 'language' field to ComicBookInfo metadata for .CBR files. 2019-07-27 17:45:33 -04:00
Kovid Goyal d98b2e0b9c Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-07-25 14:16:25 +05:30
Kovid Goyal e28f5b52ee ... 2019-07-25 13:56:15 +05:30
Kovid Goyal 29615f2a69 Update Chicago Tribune 2019-07-25 13:53:52 +05:30
Eli Schwartz d01e441905 py3: read in raw data files as binary
Not specifying the mode means it will be open in text mode which can
munge linebreaks on some platforms and yields the wrong type of string
on py3.
2019-07-25 01:30:54 -04:00
Eli Schwartz d50a6ddc1b use context managers to open files 2019-07-25 01:30:54 -04:00
Kovid Goyal 219bcc3864 py3 compat for gaierror retry 2019-07-25 10:46:06 +05:30
Kovid Goyal 4cd004d4d9 More ancient linux compiler support 2019-07-25 09:39:37 +05:30
Kovid Goyal 6eeb85ebe6 Dont use auto in master since it is still built with ancient compilers on linux 2019-07-25 09:10:15 +05:30
Kovid Goyal b8b5c4e14e Various fixes for the last py3 merge 2019-07-25 08:52:35 +05:30
Kovid Goyal c84d019ef7 Get more information from podofo exceptions 2019-07-24 19:51:33 +05:30
Kovid Goyal 23766d6b83 Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-07-24 14:12:57 +05:30
Eli Schwartz 3959c4fdca simplify check for non-zero content in set()
There's no point in casting to list just to compare to [], since
set/list/tuple will evaluate to false when empty. So we can do less work
in fewer characters.
2019-07-23 17:30:45 -04:00
Eli Schwartz 8b75e8c3e3 use floor division instead of math.floor 2019-07-23 17:30:45 -04:00
Eli Schwartz 4b280adcc9 py3: more work towards universal __future__s 2019-07-23 17:30:38 -04:00
Eli Schwartz cba11fb969 unicode_check: do not try to check pyuic-generated files 2019-07-23 17:29:48 -04:00
Eli Schwartz 2212dfc649 fix imports from the wrong module
when module_a.submodule_a imports module_b, then module_c should not use
"from module_a.submodule_a import module_b"
2019-07-23 17:29:48 -04:00
Eli Schwartz b9fb80d9b0 use raw strings where possible to avoid escaping issues 2019-07-23 17:29:48 -04:00
Kovid Goyal 80c6de0eb9 LIT Output: Fix regression in 3.41 caused by py3 porting that broke conversion of some files to LIT. Fixes #1837561 [Lit conversion error (Conversion options changed from default)](https://bugs.launchpad.net/calibre/+bug/1837561) 2019-07-23 20:08:12 +05:30
Kovid Goyal 9210902218 Merge branch 'keyerror' of https://github.com/eli-schwartz/calibre 2019-07-23 12:06:19 +05:30
Eli Schwartz 4694efcfc9 Open With: don't raise KeyError if cache exists and there are new dirs
If the cache failed to load, it is initialized as a defaultdict and all
mtimes compare as 0. If the cache did load, however, then an ordinary
dict was used, and if new icon directories appeared on the system since
the cache creation, they would raise a KeyError and Open With would not
load data.

Fix by using a defaultdict in all cases, but initializing with the
contents of the cache if possible.

Discovered when crazy applications added crazy subdirectories in
/usr/share/pixmaps (???) and suddenly calibre failed to do the right
thing, but the same should apply if the system adds a new icon theme.
2019-07-23 01:11:19 -04:00
Kovid Goyal acc6beaad8 Preferences->Ignored devices: Add a button to reset the list of devices that calibre is allowed to manage 2019-07-20 14:59:54 +05:30
Kovid Goyal a78bf9f21d Update WSJ
Fixes #1837213 [Private bug](https://bugs.launchpad.net/calibre/+bug/1837213)
2019-07-20 12:40:26 +05:30
Kovid Goyal 39a4fb8d26 Merge branch 'python38-syntax-warning' of https://github.com/keszybz/calibre 2019-07-19 21:21:07 +05:30
Zbigniew Jędrzejewski-Szmek 9480360bc8 py3: another warning about invalid escape 2019-07-19 16:26:02 +02:00
Zbigniew Jędrzejewski-Szmek 0156785a14 py3: fix invalid escapes
python3.8 warns about strings which try to escape characters which do
not need that. To avoid the warning, the backslash should be escaped.
(Behaviour is functionally the same, so e.g. '\$' is still the same as
r'\$', except for the warning.)
2019-07-19 16:22:21 +02:00
Kovid Goyal 90714baef8 version 3.46.0 v3.46.0 2019-07-19 08:49:21 +05:30
Kovid Goyal 54094a9fa7 Fix #1837102 ["Toolbox and Menu" configuration window jumps around on descriptions](https://bugs.launchpad.net/calibre/+bug/1837102) 2019-07-19 08:36:03 +05:30
Kovid Goyal f7aace3ff8 py3: Another __future__ import 2019-07-18 09:01:37 +05:30
Kovid Goyal ed06633253 Manage tags dialog: When searching for a tag also search the "Was" column to see if the original tag name matches. Fixes #1836813 [[Enhancement]Tag Manager edits lost with Find](https://bugs.launchpad.net/calibre/+bug/1836813) 2019-07-18 08:57:03 +05:30
Kovid Goyal 449240222b Fix a regression that broke msgfmt for non-ascii strings in 3.45 on python2 2019-07-17 18:22:36 +05:30
Kovid Goyal 78f1896c69 Windows: Fix calibre-server --manage-users not working correctly
Apparently when running in the windows command prompy raw_input()
returns a trailing carriage return
2019-07-17 14:53:29 +05:30
Kovid Goyal 23bc346ce8 Maybe Sports Illustrated needs Accept-Language 2019-07-16 08:27:17 +05:30
Kovid Goyal 2a6e7ea82d MOBI Input: Fix conversion of MOBI files with malformed markup and embeded <guide> tags not working. Fixes #1836548 [Private bug](https://bugs.launchpad.net/calibre/+bug/1836548) 2019-07-15 22:34:20 +05:30
Kovid Goyal 8dc5c82fa0 more py3 porting
Also DRYer the socket addresses creation
2019-07-15 22:10:53 +05:30
Kovid Goyal 8d73d33733 Print out failing IPC address 2019-07-15 21:41:00 +05:30
Kovid Goyal ae02e93b22 Edit book: Allow the search expression history to remember very short terms and also preserve leading and trailing whitespace
Fixes #1836559 [leading and trailing spaces are trimmed from old  search and replace values in e-book editor](https://bugs.launchpad.net/calibre/+bug/1836559)
2019-07-15 18:14:55 +05:30
Kovid Goyal e06d268dad Ignore --auto-reload if --manage-users is specified 2019-07-15 09:56:29 +05:30
Kovid Goyal c1e6aca8e0 Fix a regression in 3.45.0 caused by py3 porting that broke rasterization of SVG images when converting to formats such as MOBI that do not support SVG. Fixes #1836463 [Private bug](https://bugs.launchpad.net/calibre/+bug/1836463) 2019-07-15 09:21:22 +05:30
Kovid Goyal bae5d86600 Remove the pipelining test
HTTP 1.1 pipelining is not used by any major HTTP clients
and the internal state hackery required to make the HTTPCOnnection class
do it was fragile on python 3, making the test flakey
2019-07-15 09:05:39 +05:30
Kovid Goyal cb14986b8d Fix a regression in 3.45.0 that broke parsing of old-style .py config files
unicode_literals means we now have to mark bytestrings explicitly before
trying to exec the source
2019-07-14 15:24:01 +05:30
Kovid Goyal 312332a847 version 3.45.2 v3.45.2 2019-07-12 20:23:35 +05:30
Kovid Goyal 3d3b469572 Get rid of remaining uses of expanduser from calibre.utils.filenames
os.path.expanduser is now monkeypatched at startup on windows.
2019-07-12 20:21:14 +05:30
Kovid Goyal ad3156a58f Fix a regression caused by py3 porting that is preventing calibre from starting up on windows machines with non UTF-8 locales. Fixes #1836360 [no RUN ver 3.45.0 or 3.45.1](https://bugs.launchpad.net/calibre/+bug/1836360)
os.path.expanduser is broken in python2. When passed a unicode object it
concatenates it to a bytestring, which will lead to UnicodeDecodeError
if the bytestring happens to not be in the default encoding, ususally
UTF-8
2019-07-12 20:10:40 +05:30