String changes

This commit is contained in:
Kovid Goyal 2021-02-24 21:59:53 +05:30
parent baea16dde4
commit c69f2851f3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ BOOK_SEARCHES = {
NAMES = { NAMES = {
'goodreads': _('Goodreads'), 'goodreads': _('Goodreads'),
'google': _('Google books'), 'google': _('Google Books'),
'wikipedia': _('Wikipedia'), 'wikipedia': _('Wikipedia'),
'gws': _('Google web search'), 'gws': _('Google web search'),
'amzn': _('Amazon'), 'amzn': _('Amazon'),

View File

@ -749,13 +749,13 @@ def search_internet(container_id):
for name, url in [ for name, url in [
(_('Goodreads'), 'https://www.goodreads.com/book/author/{author}'), (_('Goodreads'), 'https://www.goodreads.com/book/author/{author}'),
(_('Wikipedia'), 'https://en.wikipedia.org/w/index.php?search={author}'), (_('Wikipedia'), 'https://en.wikipedia.org/w/index.php?search={author}'),
(_('Google books'), 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22'), (_('Google Books'), 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22'),
]: ]:
author_links.appendChild(E.li(link_for(name, url))) author_links.appendChild(E.li(link_for(name, url)))
for name, url in [ for name, url in [
(_('Goodreads'), 'https://www.goodreads.com/search?q={author}+{title}&search%5Bsource%5D=goodreads&search_type=books&tab=books'), (_('Goodreads'), 'https://www.goodreads.com/search?q={author}+{title}&search%5Bsource%5D=goodreads&search_type=books&tab=books'),
(_('Google books'), 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22+intitle:%22{title}%22'), (_('Google Books'), 'https://www.google.com/search?tbm=bks&q=inauthor:%22{author}%22+intitle:%22{title}%22'),
(_('Amazon'), 'https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords={author}+{title}'), (_('Amazon'), 'https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords={author}+{title}'),
]: ]:
book_links.appendChild(E.li(link_for(name, url))) book_links.appendChild(E.li(link_for(name, url)))