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",