@@ -38,7 +38,7 @@ def json_decode(output):
3838 }
3939
4040sites_langs = {
41- 'www.audible.com' : { 'lang' : 'en' , 'urltitle' : u'title=' , 'rel_date' : u'Release date' , 'nar_by' : u'Narrated By' , 'nar_by2' : u'Narrated by' },
41+ 'www.audible.com' : { 'lang' : 'en' , 'urltitle' : u'title=' , 'rel_date' : u'Release ' , 'nar_by' : u'Narrated By' , 'nar_by2' : u'Narrated by' },
4242 'www.audible.co.uk' : { 'lang' : 'en' , 'urltitle' : u'searchTitle=' , 'rel_date' : u'Release Date' , 'nar_by' : u'Narrated By' , 'nar_by2' : u'Narrated by' },
4343 'www.audible.com.au' : { 'lang' : 'en' , 'urltitle' : u'searchTitle=' , 'rel_date' : u'Release Date' , 'nar_by' : u'Narrated By' , 'nar_by2' : u'Narrated by' },
4444 'www.audible.fr' : { 'lang' : 'fr' , 'urltitle' : u'searchTitle=' , 'rel_date' : u'Date de publication' , 'nar_by' : u'Narrateur(s)' , 'nar_by2' : u'Lu par' },
@@ -104,9 +104,9 @@ def SetupUrls(sitetype, base, lang='en'):
104104 AUD_TITLE_URL = urlsearchtitle
105105 ctx ['AUD_BOOK_INFO' ]= AUD_BASE_URL + 'pd/%s?ipRedirectOverride=true'
106106 ctx ['AUD_ARTIST_SEARCH_URL' ]= AUD_BASE_URL + 'search?searchAuthor=%s&ipRedirectOverride=true'
107- ctx ['AUD_ALBUM_SEARCH_URL' ]= AUD_BASE_URL + 'search?' + AUD_TITLE_URL + '%s &x=41&ipRedirectOverride=true'
107+ ctx ['AUD_ALBUM_SEARCH_URL' ]= AUD_BASE_URL + 'search?' + AUD_TITLE_URL + '{0}&searchTitle={0} &x=41&ipRedirectOverride=true'
108108 ctx ['AUD_KEYWORD_SEARCH_URL' ]= AUD_BASE_URL + 'search?filterby=field-keywords&advsearchKeywords=%s&x=41&ipRedirectOverride=true'
109- ctx ['AUD_SEARCH_URL' ]= AUD_BASE_URL + 'search?' + AUD_TITLE_URL + '{0}&searchAuthor={1}&x=41&ipRedirectOverride=true'
109+ ctx ['AUD_SEARCH_URL' ]= AUD_BASE_URL + 'search?' + AUD_TITLE_URL + '{0}&searchTitle={0}& searchAuthor={1}&x=41&ipRedirectOverride=true'
110110 return ctx
111111
112112
@@ -354,7 +354,7 @@ def search(self, results, media, lang, manual):
354354 elif media .artist is not None :
355355 searchUrl = ctx ['AUD_SEARCH_URL' ].format ((String .Quote ((normalizedName ).encode ('utf-8' ), usePlus = True )), (String .Quote ((media .artist ).encode ('utf-8' ), usePlus = True )))
356356 else :
357- searchUrl = ctx ['AUD_ALBUM_SEARCH_URL' ] % ( String .Quote ((normalizedName ).encode ('utf-8' ), usePlus = True ))
357+ searchUrl = ctx ['AUD_ALBUM_SEARCH_URL' ]. format (( String .Quote ((normalizedName ).encode ('utf-8' ), usePlus = True ) ))
358358 found = self .doSearch (searchUrl , ctx )
359359
360360 # Write search result status to log
0 commit comments