Closed mpeterson2 closed 10 years ago
So I believe it is being encoded because by the time it gets to the server, the album's name is
Love Lust Faith Dreams
(note the three spaces in between Faith
and Dreams
instead of two spaces and a +
)
With an &
, it just gets cut off at the &
.
So B-sides & Rarities
becomes B-sides
.
The ampersand kills it because key/value pairs are separated by &
s. To fix it, we'd need to URL encode and URL decode (or really, any kind of encode/decode pair) when sending it back.
Yeah, I'm just hoping there's an easy way to do this between Dart and Go.
URL encoding. Hopefully. It's a standard...
Yeah that's what I'm a bit worried about. It should be standard though.
On a side note, this is probably also why last.fm doesn't give me the album art for that album.
Fixed with commit 694202b7d14d8bb6b833489885097a23e0edb6d0
An example is 30 Seconds To Mar's album Love Lust Faith + Dreams. For some reason when you search for that in mpc's
find
function, nothing is returned to the client.It also doesn't work with
&
's and probably other weird things.If you telnet into
localhost 6600
and type:find artist "30 Seconds To Mars" album "Love Lust Faith + Dreams"
It actually does find all the files, but it's not returned to the client. I'm assuming that our album's name is getting encoded to be able to get sent to our server.