From 8ad4f012886fd5c1c13c47bba22b658e7e8b076a Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sat, 14 Mar 2015 12:51:37 +0100 Subject: [PATCH] Fix OPDS categories not showing books for composite column categories if the column contains a colon. --- src/calibre/library/server/opds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server/opds.py b/src/calibre/library/server/opds.py index 5733683bba..43cde646c6 100644 --- a/src/calibre/library/server/opds.py +++ b/src/calibre/library/server/opds.py @@ -551,7 +551,7 @@ class OPDSServer(object): which = which[1:] if type_ == 'I': try: - p = which.index(':') + p = which.rindex(':') category = which[p+1:] which = which[:p] # This line will toss an exception for composite columns