New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpd:Update protocol version to 0.19 #1213
Conversation
Since mpd 0.19, it has concatenated multiple values using a ';' character. Mopidy has been using ', '. This makes mopidy use a ';' for all artist-related values. In mpd 0.18, multiple values were displayed as multiple lines in the output, hence this change bumps the mpd protocol version to 0.19 to reflect the new behaviour.
Update tests to reflect new function names
|
||
def test_artists_to_mpd_format_artist_with_no_name(self): | ||
def test_concatenate_muultiple_values_artist_with_no_name(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/muultiple/multiple/
This looks good, so I ended up just doing nitpicking :-) |
I'm pretty happy with that for a first attempt :) I'll address your comments as soon as I have a little more time. |
Address issues raised in review: Fix formatting by shortening function name to concat_multi_values Change comments and variable names to reflect generic nature of function Fix typos in tests Default to single quotes for strings
Protip: Watcher get no notifications when you push new commits to a PR, so a "I pushed some new commits" comment brings focus back to your PR a lot faster :-) |
mpd: Concatenate multiple artist names, etc using ";" instead of multiple lines This is a part of updating the MPD protocol version to 0.19
Thanks for the tip :) Will this get merged to 1.0.x? |
No, I don't think so as it's really not a bug fix, but a protocol upgrade. What more is required for us to be 0.19 compatible? |
There is a new command:
Other than that, I can't see any other (documented) changes. |
For the record: I've now added empty not implemented skeletons for all the new commands listed in the MPD 0.19.0 changelog. |
Since mpd 0.19, it has concatenated multiple values using
a ';' character. Mopidy has been using ', '. This makes mopidy
use a ';' for all artist-related values.
In mpd 0.18, multiple values were displayed as multiple lines in
the output, hence this change bumps the mpd protocol version to
0.19 to reflect the new behaviour.