From 809ea18248d49136c8ad61e40217bcedc1a11f72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 Sep 2010 13:37:45 -0600 Subject: [PATCH] Content server: Use /mobile version for Kindle browser --- src/calibre/library/server/mobile.py | 2 +- src/calibre/manual/faq.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/server/mobile.py b/src/calibre/library/server/mobile.py index 5b86e9a221..229e0c21c4 100644 --- a/src/calibre/library/server/mobile.py +++ b/src/calibre/library/server/mobile.py @@ -156,7 +156,7 @@ def build_index(books, num, search, sort, order, start, total, url_base, CKEYS): class MobileServer(object): 'A view optimized for browsers in mobile devices' - MOBILE_UA = re.compile('(?i)(?:iPhone|Opera Mini|NetFront|webOS|Mobile|Android|imode|DoCoMo|Minimo|Blackberry|MIDP|Symbian|HD2)') + MOBILE_UA = re.compile('(?i)(?:iPhone|Opera Mini|NetFront|webOS|Mobile|Android|imode|DoCoMo|Minimo|Blackberry|MIDP|Symbian|HD2|Kindle)') def add_routes(self, connect): connect('mobile', '/mobile', self.mobile) diff --git a/src/calibre/manual/faq.rst b/src/calibre/manual/faq.rst index efc05a3f38..0a32f442c0 100644 --- a/src/calibre/manual/faq.rst +++ b/src/calibre/manual/faq.rst @@ -223,7 +223,7 @@ the server has IP address 63.45.128.5, in the browser, you would type:: http://63.45.128.5:8080 -Some devices, like the Kindle, do not allow you to access port 8080 (the default port on which the content +Some devices, like the Kindle (1/2/DX), do not allow you to access port 8080 (the default port on which the content server runs. In that case, change the port in the |app| Preferences to 80. (On some operating systems, you may not be able to run the server on a port number less than 1024 because of security settings. In this case the simplest solution is to adjust your router to forward requests on port 80 to port 8080).