Skip to content

Commit 057748d

Browse files
committed
Reverting changes to author and series search for single language mode
1 parent 5b1644e commit 057748d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/opds/opds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func (h *Handler) listAuthors(w http.ResponseWriter, r *http.Request) {
477477
lang := h.getLanguage(r)
478478
prefix := r.FormValue("author")
479479
abc := h.CFG.Languages[lang].Abc
480-
if r.Form.Has("all") || len(h.CFG.Languages) == 1 {
480+
if r.Form.Has("all") {
481481
abc = ""
482482
}
483483
authors := h.DB.ListAuthors(prefix, abc)
@@ -823,7 +823,7 @@ func (h *Handler) listSeries(w http.ResponseWriter, r *http.Request) {
823823
aLang string
824824
all string
825825
)
826-
if r.Form.Has("all") || len(h.CFG.Languages) == 1 {
826+
if r.Form.Has("all") {
827827
abc = ""
828828
aLang = ""
829829
all = "&all"

0 commit comments

Comments
 (0)