mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-19 04:52:30 +01:00
- Fix remove songs from playlist in network remote.
- Update protocol buffer version.
(cherry picked from commit 7470f67acf
)
This commit is contained in:
parent
6b80ec08d5
commit
a979b22237
1681
dist/windows/clementine-portable.nsi
vendored
Normal file
1681
dist/windows/clementine-portable.nsi
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -276,7 +276,7 @@ message RequestRateSong {
|
|||||||
|
|
||||||
// The message itself
|
// The message itself
|
||||||
message Message {
|
message Message {
|
||||||
optional int32 version = 1 [default=11];
|
optional int32 version = 1 [default=12];
|
||||||
optional MsgType type = 2 [default=UNKNOWN]; // What data is in the message?
|
optional MsgType type = 2 [default=UNKNOWN]; // What data is in the message?
|
||||||
|
|
||||||
optional RequestConnect request_connect = 21;
|
optional RequestConnect request_connect = 21;
|
||||||
|
@ -262,7 +262,9 @@ void IncomingDataParser::RemoveSongs(const pb::remote::Message& msg) {
|
|||||||
|
|
||||||
// Extract urls
|
// Extract urls
|
||||||
QList<int> songs;
|
QList<int> songs;
|
||||||
std::copy(request.songs().begin(), request.songs().end(), songs.begin());
|
for (int i = 0; i<request.songs().size();i++) {
|
||||||
|
songs.append(request.songs(i));
|
||||||
|
}
|
||||||
|
|
||||||
// Insert the urls
|
// Insert the urls
|
||||||
emit RemoveSongs(request.playlist_id(), songs);
|
emit RemoveSongs(request.playlist_id(), songs);
|
||||||
|
Loading…
Reference in New Issue
Block a user