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_SERVER = None
|
||||||
THUMBOR_SECRET = ""
|
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
|
# Set to None to disable
|
||||||
TRACK_SEARCH_PROVIDER = None
|
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()
|
self.lock.acquire()
|
||||||
try:
|
try:
|
||||||
artists, title = track
|
artists, title = track
|
||||||
artiststring = urllib.parse.quote(", ".join(artists))
|
artiststring = ", ".join(artists) #Join artists collection into string
|
||||||
titlestring = urllib.parse.quote(title)
|
titlestring = title
|
||||||
querystr = urllib.parse.urlencode({
|
querystr = urllib.parse.urlencode({
|
||||||
"fmt":"json",
|
"fmt":"json",
|
||||||
"query":"{title} {artist}".format(artist=artiststring,title=titlestring)
|
"query":"{title} {artist}".format(artist=artiststring,title=titlestring)
|
||||||
|
@ -72,7 +72,10 @@
|
|||||||
"soundcloud":'https://soundcloud.com/search?q=',
|
"soundcloud":'https://soundcloud.com/search?q=',
|
||||||
"amazonmusic":'https://music.amazon.com/search/',
|
"amazonmusic":'https://music.amazon.com/search/',
|
||||||
"deezer":'https://www.deezer.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