Skip to content
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

Merged
merged 3 commits into from Jul 8, 2015
Merged

mpd:Update protocol version to 0.19 #1213

merged 3 commits into from Jul 8, 2015

Conversation

fatg3erman
Copy link
Contributor

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.

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):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/muultiple/multiple/

@jodal jodal self-assigned this Jul 5, 2015
@jodal jodal added this to the v1.1 - Robust core milestone Jul 5, 2015
@jodal
Copy link
Member

jodal commented Jul 5, 2015

This looks good, so I ended up just doing nitpicking :-)

@fatg3erman
Copy link
Contributor Author

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
@jodal
Copy link
Member

jodal commented Jul 8, 2015

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

jodal added a commit that referenced this pull request Jul 8, 2015
mpd: Concatenate multiple artist names, etc using ";" instead of multiple lines

This is a part of updating the MPD protocol version to 0.19
@jodal jodal merged commit db1f504 into mopidy:develop Jul 8, 2015
@fatg3erman
Copy link
Contributor Author

Thanks for the tip :) Will this get merged to 1.0.x?

@jodal
Copy link
Member

jodal commented Jul 8, 2015

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?

@fatg3erman
Copy link
Contributor Author

There is a new command:

rangeid {ID} {START:END}

    Specifies the portion of the song that shall be played. START and END are 
    offsets in seconds (fractional seconds allowed); both are optional. Omitting both
    (i.e. sending just ":") means "remove the range, play everything".
    A song that is currently playing cannot be manipulated this way.

Other than that, I can't see any other (documented) changes.

@jodal
Copy link
Member

jodal commented Jul 21, 2015

For the record: I've now added empty not implemented skeletons for all the new commands listed in the MPD 0.19.0 changelog.

@fatg3erman fatg3erman deleted the feature/update-mpd-to-0.19 branch July 21, 2015 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants