1
0
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:
Krateng 2020-10-05 03:15:15 +02:00
commit 9e03a01e70
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE
3 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -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='
} }
%} %}