Commit Graph

30636 Commits

Author SHA1 Message Date
Kovid Goyal ef765ff73e ... 2015-06-16 10:05:54 +05:30
Kovid Goyal 866d5ce048 Fix /get cache not working on filesystems with low mtime precision 2015-06-16 09:53:15 +05:30
Kovid Goyal 043d345287 Make various global caches used by the server thread-safe 2015-06-16 08:16:14 +05:30
Kovid Goyal 8405be4ebb ... 2015-06-16 08:15:24 +05:30
Kovid Goyal 57f41246e7 ... 2015-06-15 20:40:23 +05:30
Kovid Goyal 459899a11a Implement /ajax/search 2015-06-15 20:39:02 +05:30
Kovid Goyal de39f5f887 Implement Tag Browser ajax APIs 2015-06-15 16:24:28 +05:30
Kovid Goyal 59515f4410 ... 2015-06-15 16:22:48 +05:30
Kovid Goyal 2c0c9eec76 ... 2015-06-15 16:08:04 +05:30
Kovid Goyal 2d574c2b85 ... 2015-06-15 15:55:50 +05:30
Kovid Goyal 5cf181bae6 Add type information for the first two arguments of all endpoints 2015-06-15 10:51:45 +05:30
Kovid Goyal 52b16e4f4b Allow using references to the function in url_for() instead of just the route key 2015-06-15 10:43:34 +05:30
Kovid Goyal 5dba5f88a4 Validate the arguments to url_for() 2015-06-15 10:12:32 +05:30
Kovid Goyal f07a3b301a Do not generate optional path components if they are not specified in url_for() 2015-06-15 10:01:43 +05:30
Kovid Goyal 818d5a9070 Use URL safe characters for library ids 2015-06-15 09:53:41 +05:30
Kovid Goyal c29015a3ad Server: Implement caching for get_categories() and search() 2015-06-15 09:08:45 +05:30
Kovid Goyal c10ba11e30 Keep track of number of times search cache is cleared.
Allows external consumers of the db to maintain their own search caches.

Also make last_modified() a first class API.
2015-06-15 09:07:42 +05:30
Kovid Goyal 9f866e2ca8 Merge branch 'master' of https://github.com/user-none/calibre 2015-06-15 08:03:22 +05:30
John Schember 4d0f94cdbc Remove some affiliate ids. 2015-06-14 22:10:02 -04:00
Kovid Goyal cc3d1596f5 Implement /icon
Also use nicer URL scheme for specifying thumbnail sizes
2015-06-14 20:57:51 +05:30
Kovid Goyal d0703d5ae1 ... 2015-06-14 20:53:11 +05:30
Kovid Goyal dc7cf2cfdc Quote variable values in url_for() 2015-06-14 20:03:11 +05:30
Kovid Goyal 33e47e424c Small performance improvement 2015-06-14 18:09:28 +05:30
Kovid Goyal ebf08b4e22 Implement /ajax/books(s) 2015-06-14 17:10:14 +05:30
Kovid Goyal 7fc14ca47f Fix parsing of query strings 2015-06-14 16:56:50 +05:30
Kovid Goyal 3d2066c5c2 Implement /get/json 2015-06-14 14:01:36 +05:30
Kovid Goyal 5ef9def403 ... 2015-06-14 14:00:48 +05:30
Kovid Goyal 95075623d6 Implement /get/opf 2015-06-14 12:13:24 +05:30
Kovid Goyal dd5f24db21 Fix write_iter() not working if the iterator yields empty chunks
Caused gzip transfer encoding to break for data larger than the buffer
size
2015-06-14 12:13:08 +05:30
Kovid Goyal 2fcd2fd85e ... 2015-06-14 11:06:20 +05:30
Kovid Goyal 0387e6dfc8 Implement /get for ebook formats and covers/thumbs 2015-06-14 11:04:55 +05:30
Kovid Goyal a848440da8 Update Entrepreneur Magazine
Fixes #1464886 [Unable to fetch news from the entrepeneur magazine](https://bugs.launchpad.net/calibre/+bug/1464886)
2015-06-14 09:12:03 +05:30
Kovid Goyal f2469eefdc Implement serving of static resources 2015-06-13 15:12:06 +05:30
Kovid Goyal f620eb0279 Make the default endpoint require authentication 2015-06-13 10:21:50 +05:30
Kovid Goyal 6e2c9c0001 Make translations based on the accept-language header available on the RequestData object 2015-06-13 09:54:09 +05:30
Kovid Goyal 748b18b599 E-book viewer: Make the search engine used for searching for selected text configurable 2015-06-13 09:24:02 +05:30
Kovid Goyal 4c1cd70233 Store the request path in the nonce for the android cookie. Prevents replay attacks against more than a single URL
Test for android cross url replay attack prevention
2015-06-12 12:07:35 +05:30
Kovid Goyal 1ea0f8ddab Implement workaround for android lack of support for HTTP Auth when downloading files 2015-06-12 11:57:31 +05:30
Kovid Goyal f6e4eaf375 Change to using SHA-256 for the nonce
Also make nonce generation/validation code re-useable for other auth
schemes.
2015-06-12 09:39:30 +05:30
Kovid Goyal 25eb0e6100 Fix Cybook Nolimbook not being detected in linux and OS X.
Fixes #1464382 [device "Nolim +HD" is not recognized](https://bugs.launchpad.net/calibre/+bug/1464382)
2015-06-12 08:41:20 +05:30
Kovid Goyal 098365e35d Various Ukranian news sources by rpalyvoda 2015-06-12 08:36:58 +05:30
Kovid Goyal 9f209ae695 More tests for digest auth 2015-06-11 13:54:55 +05:30
Kovid Goyal 1fc2082c4a DOCX Output: Fix internal hyperlinks being ignored when they point to a HTML file whose <body> element has an id. Fixes #1464086 [ePub to DOCX conversion: no internal hyperlinks](https://bugs.launchpad.net/calibre/+bug/1464086) [ePub to DOCX conversion: no internal hyperlinks](https://bugs.launchpad.net/calibre/+bug/1464086) 2015-06-11 09:52:03 +05:30
Kovid Goyal 7d172200b3 Edit Book: Fix groups in replace template being interpreted backwards when search direction is up 2015-06-10 18:54:39 +05:30
Kovid Goyal b51b73b530 Update regex engine (fixes a thread safety bug) 2015-06-09 09:40:44 +05:30
Kovid Goyal c04db5b1ff Searching: When search as you type is active, do not change automatically change focus to the book list when searching, unless the user presses Enter. Fixes #1463042 [The focus issue of the search box after checked the Search as you type option](https://bugs.launchpad.net/calibre/+bug/1463042) 2015-06-09 09:08:35 +05:30
Kovid Goyal 89a6e4eaee ... 2015-06-09 08:57:05 +05:30
Kovid Goyal 6c4c95b128 Fix #1463219 [Typo error of the Manual](https://bugs.launchpad.net/calibre/+bug/1463219) 2015-06-09 08:52:22 +05:30
Kovid Goyal b27daf19c2 ... 2015-06-09 08:50:07 +05:30
Kovid Goyal bd8ca5a020 Make the file watching classes re-useable 2015-06-09 08:32:25 +05:30