From d1acce025b70861a42a72bd550877b94288ef67c Mon Sep 17 00:00:00 2001 From: Jamie Osborne Date: Wed, 27 Dec 2017 20:32:01 +0000 Subject: [PATCH] Option to use more flexible keyword searching - also avoids issue with US title search url outside of US --- Contents/Code/__init__.py | 3 +++ Contents/DefaultPrefs.json | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 192371a..3542928 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -105,6 +105,9 @@ def SetupUrls(sitetype, base, lang='en'): ctx['NAR_BY' ]='Narrated By' ctx['NAR_BY_INFO' ]='Narrated by' + # Match titles using more flexible keyword search + if Prefs['keyword_searching']: + urlsearchtitle="advsearchKeywords=" AUD_BASE_URL='https://' + str(base) + '/' AUD_TITLE_URL=urlsearchtitle diff --git a/Contents/DefaultPrefs.json b/Contents/DefaultPrefs.json index fe9714d..61b69bf 100644 --- a/Contents/DefaultPrefs.json +++ b/Contents/DefaultPrefs.json @@ -8,6 +8,11 @@ "type" : "enum", "values" : ["www.audible.com","www.audible.co.uk","www.audible.com.au","www.audible.de","www.audible.fr","www.audible.it"], "default" : "www.audible.com" +},{ + "id": "keyword_searching", + "label": "Match titles using more flexible keyword search", + "type": "bool", + "default": "false" },{ "id": "debug", "label": "Ouput debugging info in logs",