mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server; Fix page not found error when clicking on a category that has only a single item in it
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
2987737eb1
@ -498,7 +498,9 @@ class BrowseServer(object):
|
|||||||
datatype, self.opts.url_prefix)
|
datatype, self.opts.url_prefix)
|
||||||
href = re.search(r'<a href="([^"]+)"', html)
|
href = re.search(r'<a href="([^"]+)"', html)
|
||||||
if href is not None:
|
if href is not None:
|
||||||
raise cherrypy.InternalRedirect(href.group(1))
|
# cherrypy does not auto unquote params when using
|
||||||
|
# InternalRedirect
|
||||||
|
raise cherrypy.InternalRedirect(unquote(href.group(1)))
|
||||||
|
|
||||||
if len(items) <= self.opts.max_opds_ungrouped_items:
|
if len(items) <= self.opts.max_opds_ungrouped_items:
|
||||||
script = 'false'
|
script = 'false'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user