only use one "-" to separate text from url in lastfm.py

This commit is contained in:
jesopo 2019-02-28 16:34:22 +00:00
parent bb6b292b6c
commit cedd080f75

View file

@ -51,7 +51,7 @@ class Module(ModuleManager.BaseModule):
ytquery = " - ".join([artist, track_name])
short_url = self.exports.get_one("search-youtube")(ytquery)
short_url = " -- " + short_url if short_url else ""
short_url = " - " + short_url if short_url else ""
info_page = utils.http.request(URL_SCROBBLER, get_params={
"method": "track.getInfo", "artist": artist,