Commit Graph

31215 Commits

Author SHA1 Message Date
Kovid Goyal 8e52d122ef Diff dialog: Hide busy indicator when showing no changes found message 2015-10-30 09:15:23 +05:30
Kovid Goyal da78f784a0 Update Pocket 2015-10-30 08:52:28 +05:30
Kovid Goyal eb8c761633 ... 2015-10-29 20:00:51 +05:30
Kovid Goyal 3463fc6414 pep8 2015-10-29 17:13:59 +05:30
Kovid Goyal 51df81135f Use only four bytes to ensure timestamp in unique instead of 16 2015-10-29 10:28:17 +05:30
Kovid Goyal b7f0999949 Dont use QueryPerfomanceCounter for monotonic() as it is wildly inaccurate, despite what the documentation from MuppetSoft says 2015-10-29 09:37:59 +05:30
Kovid Goyal 06c5f0c1f2 Metadata download review dialog: Add an option to mark rejected books in the main book list after the review is completed. Fixes #1507198 [[feature request] Mark rejected download results](https://bugs.launchpad.net/calibre/+bug/1507198) 2015-10-28 21:27:48 +05:30
Kovid Goyal b5b681d525 Edit metadata dialog: When downloading metadata with download of authors turned off, do not regenerate the author sort field after the download. Fixes #1510335 ["Author Sort" corrupted when using "Download metadata"](https://bugs.launchpad.net/calibre/+bug/1510335) 2015-10-28 20:45:34 +05:30
Kovid Goyal 2e4927d02e Fix #1510687 [TOC editor maximum width](https://bugs.launchpad.net/calibre/+bug/1510687) 2015-10-28 20:29:48 +05:30
Kovid Goyal 853b1f6012 ... 2015-10-28 18:50:23 +05:30
Kovid Goyal 83151cc1f0 Avoid the extra malloc+copies entailed by BytesIO in the non websocket part of the server as well
Needed a replacement for the zlib module as  the python2 version does
not support memoryview objects.
2015-10-28 18:24:01 +05:30
Kovid Goyal e56703ebc2 Properly release the Py_buffer objects 2015-10-28 18:11:34 +05:30
Kovid Goyal 3c3f65f1c2 ... 2015-10-28 14:48:32 +05:30
Kovid Goyal 875f10287e Eliminate unnecessary function call 2015-10-28 14:45:48 +05:30
Kovid Goyal 343574245f Speedup monotonic() by eliminating the ctypes overhead 2015-10-28 14:39:49 +05:30
Kovid Goyal af07373638 Eliminate another malloc+copy 2015-10-28 12:23:08 +05:30
Kovid Goyal abb62bc65f Change utf8_decode() to use the buffer protocol as well 2015-10-28 11:54:26 +05:30
Kovid Goyal 6925b23754 More WS speedups by using the buffer protocol to avoid mallocs 2015-10-28 11:34:33 +05:30
Kovid Goyal 689bec8c46 Reduce number of mallocs in the WebSocket server 2015-10-28 08:25:43 +05:30
Kovid Goyal ee1593b77c ... 2015-10-28 08:06:09 +05:30
Kovid Goyal 93004be1b6 Retry only a fixed number of times in compiling RS fails 2015-10-27 21:44:35 +05:30
Kovid Goyal 467f7a3273 Only retry connecting to the reload server for a second
The port changes when the reload server is restarted in any case, so no
point trying to reconnect if the server has gone away.
2015-10-27 20:43:17 +05:30
Kovid Goyal 6e874b5377 --auto-reload now automatically refreshes the page in browsers as well
Uses a WebSocket to send a signal to all browsers that have loaded the
page.
2015-10-27 20:33:56 +05:30
Kovid Goyal ce9ff2a0de ... 2015-10-27 17:21:03 +05:30
Kovid Goyal 826dc25ffd When converting AZW4 files to PDF, skip the conversion and simply unwrap the PDF file already embedded inside the AZW4 file.
This almost always gives better results, since otherwise we are doing a
PDF to PDF conversion.
2015-10-27 07:00:38 +05:30
Kovid Goyal de641e723a Fix a regression that broke the heuristic used to detect cover images in some EPUB files that do not specify their cover metadata. Fixes #1509642 ["cover.jpg" generated with additional white space (for small cover jpgs)](https://bugs.launchpad.net/calibre/+bug/1509642) ["cover.jpg" generated with additional white space (for small cover jpgs)](https://bugs.launchpad.net/calibre/+bug/1509642) 2015-10-27 00:17:57 +05:30
Kovid Goyal 4a0da223fd ... 2015-10-26 23:48:25 +05:30
Kovid Goyal 2923a20b3c Get the new speedup code to compile on windows 2015-10-26 21:27:03 +05:30
Kovid Goyal 3f4bc4764e Remove no longer working recipes 2015-10-26 21:20:03 +05:30
Kovid Goyal 96e957a491 Use a stricter UTF-8 decoder
The calibre server now passes all Autobahn WebSocket tests in strict
mode.
2015-10-26 21:16:03 +05:30
Kovid Goyal 747f1012e0 Notify the handler on a PONG 2015-10-26 18:38:01 +05:30
Kovid Goyal 8fc0a9f3c4 Make the EchoHandler more efficient by implementing an interface to send individual fragments instead of only complete messages. 2015-10-26 18:30:18 +05:30
Kovid Goyal 87d16a3f74 ... 2015-10-26 16:21:43 +05:30
Kovid Goyal 1555725117 Handle control frames that arrive in multiple TCP fragments 2015-10-26 15:36:06 +05:30
Kovid Goyal c9adbebe7f oops again :) 2015-10-26 15:26:38 +05:30
Kovid Goyal 3beffa6a40 ... 2015-10-26 15:18:59 +05:30
Kovid Goyal ae7f6613b4 ... 2015-10-26 15:08:02 +05:30
Kovid Goyal 724354ff47 Fix extra close frame being sent during shutdown 2015-10-26 14:34:54 +05:30
Kovid Goyal 9e4e8985f0 Remove unused code 2015-10-26 14:23:23 +05:30
Kovid Goyal 2b6021fcbd Improve websocket performance by masking in native code 2015-10-26 14:14:20 +05:30
Kovid Goyal 3f1b5782f0 Tighten up handling of close frames 2015-10-26 12:58:19 +05:30
Kovid Goyal 2535953fc6 Fix decoding of fragment text messages 2015-10-26 09:53:49 +05:30
Kovid Goyal c37c2bf718 More tests 2015-10-26 00:21:13 +05:30
Kovid Goyal 888ff441c5 Handle continuation frames with non-zero opcodes 2015-10-26 00:17:38 +05:30
Kovid Goyal 89c6f163f6 DRYer 2015-10-25 23:57:44 +05:30
Kovid Goyal 02b6e54bf1 Handle orphaned continuation frames 2015-10-25 23:55:31 +05:30
Kovid Goyal f7be2cc60f Remove code left over from a previous edit that was breaking fragment handling 2015-10-25 23:28:46 +05:30
Kovid Goyal 51f0e93be5 Change the control frames queue to FIFO
Also properly handle fragmented control frames
2015-10-25 21:42:23 +05:30
Kovid Goyal f908df4991 ... 2015-10-25 21:23:35 +05:30
Kovid Goyal b6eceba62b Return protocol error when RSV is set 2015-10-25 21:15:23 +05:30