diff --git a/maloja/web/jinja/snippets/entityrow.jinja b/maloja/web/jinja/snippets/entityrow.jinja index 719f7b3..5d04899 100644 --- a/maloja/web/jinja/snippets/entityrow.jinja +++ b/maloja/web/jinja/snippets/entityrow.jinja @@ -10,7 +10,7 @@
{% if "artists" in entity %} - {% if settings('TRACK_SEARCH_PROVIDER') != 'None' %} + {% if settings('TRACK_SEARCH_PROVIDER') is not none %} {{ links.link_search(entity) }} {% endif %} diff --git a/maloja/web/jinja/snippets/links.jinja b/maloja/web/jinja/snippets/links.jinja index f6d712c..dc80f6c 100644 --- a/maloja/web/jinja/snippets/links.jinja +++ b/maloja/web/jinja/snippets/links.jinja @@ -61,7 +61,7 @@ {% macro link_search(entity) -%} {% set track = entity.title %} - {% set artists = entity.artists|join(', ') %} + {% set artists = entity.artists|join(' ') %} {% if settings('TRACK_SEARCH_PROVIDER') == 'YouTube' %} {% set provider = 'https://www.youtube.com/results?search_query=' %} @@ -80,7 +80,7 @@ {% elif settings('TRACK_SEARCH_PROVIDER') == 'Apple' %} {% set provider = 'https://music.apple.com/us/search/song?term=' %} {% else %} - {% set provider = 'https://www.google.com/search?q=' %} + {% set provider = 'https://duckduckgo.com/?q=' %} {% endif %} {% set icon = '' %} diff --git a/maloja/web/static/less/maloja.less b/maloja/web/static/less/maloja.less index fc2af66..3e97ea8 100644 --- a/maloja/web/static/less/maloja.less +++ b/maloja/web/static/less/maloja.less @@ -501,6 +501,9 @@ table.list td.searchProvider { width: 20px; padding-right: 5px; } +table.list td.searchProvider svg { + height:17px; +} table.list td.searchProvider:hover { color: gold;