mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Merge branch 'master' of github.com:krateng/maloja
This commit is contained in:
commit
9e03a01e70
@ -34,7 +34,7 @@ CACHE_EXPIRE_POSITIVE = 300 # after how many days positive results should be ref
|
||||
THUMBOR_SERVER = None
|
||||
THUMBOR_SECRET = ""
|
||||
|
||||
# Can be 'YouTube', 'YouTube Music', 'Spotify', 'Tidal', 'SoundCloud', 'Deezer', 'Amazon Music', 'Apple'
|
||||
# Can be 'YouTube', 'YouTube Music', 'Spotify', 'Tidal', 'SoundCloud', 'Deezer', 'Amazon Music', 'Apple', 'Beatport', 'Bandcamp', 'Qobuz'
|
||||
# Set to None to disable
|
||||
TRACK_SEARCH_PROVIDER = None
|
||||
|
||||
|
4
maloja/thirdparty/musicbrainz.py
vendored
4
maloja/thirdparty/musicbrainz.py
vendored
@ -33,8 +33,8 @@ class MusicBrainz(MetadataInterface):
|
||||
self.lock.acquire()
|
||||
try:
|
||||
artists, title = track
|
||||
artiststring = urllib.parse.quote(", ".join(artists))
|
||||
titlestring = urllib.parse.quote(title)
|
||||
artiststring = ", ".join(artists) #Join artists collection into string
|
||||
titlestring = title
|
||||
querystr = urllib.parse.urlencode({
|
||||
"fmt":"json",
|
||||
"query":"{title} {artist}".format(artist=artiststring,title=titlestring)
|
||||
|
@ -72,7 +72,10 @@
|
||||
"soundcloud":'https://soundcloud.com/search?q=',
|
||||
"amazonmusic":'https://music.amazon.com/search/',
|
||||
"deezer":'https://www.deezer.com/search/',
|
||||
"apple":'https://music.apple.com/us/search/song?term='
|
||||
"apple":'https://music.apple.com/us/search/song?term=',
|
||||
"beatport":'https://beatport.com/search?q=',
|
||||
"bandcamp":'https://bandcamp.com/search?q=',
|
||||
"qobuz":'https://www.qobuz.com/us-en/search?q='
|
||||
}
|
||||
%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user