Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
976731ab
Commit
976731ab
authored
Mar 29, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/playlist: invoke the RemoteTagScanner on all newly added songs
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/234
parent
0d8942e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
NEWS
NEWS
+2
-0
PlaylistCommands.cxx
src/command/PlaylistCommands.cxx
+13
-1
No files found.
NEWS
View file @
976731ab
ver 0.21.7 (not yet released)
* input
- qobuz/tidal: scan tags when loading a playlist
* require Meson 0.49.0 for native libgcrypt-config support
* fix build failure with -Dlocal_socket=false
* Haiku
...
...
src/command/PlaylistCommands.cxx
View file @
976731ab
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "PlaylistCommands.hxx"
#include "Request.hxx"
#include "Instance.hxx"
#include "db/DatabasePlaylist.hxx"
#include "CommandError.hxx"
#include "PlaylistSave.hxx"
...
...
@@ -27,6 +28,7 @@
#include "PlaylistError.hxx"
#include "db/PlaylistVector.hxx"
#include "SongLoader.hxx"
#include "song/DetachedSong.hxx"
#include "BulkEdit.hxx"
#include "playlist/PlaylistQueue.hxx"
#include "playlist/Print.hxx"
...
...
@@ -76,11 +78,21 @@ handle_load(Client &client, Request args, gcc_unused Response &r)
const
ScopeBulkEdit
bulk_edit
(
client
.
GetPartition
());
auto
&
playlist
=
client
.
GetPlaylist
();
const
unsigned
old_size
=
playlist
.
GetLength
();
const
SongLoader
loader
(
client
);
playlist_open_into_queue
(
uri
,
range
.
start
,
range
.
end
,
client
.
GetPlaylist
()
,
playlist
,
client
.
GetPlayerControl
(),
loader
);
/* invoke the RemoteTagScanner on all newly added songs */
auto
&
instance
=
client
.
GetInstance
();
const
unsigned
new_size
=
playlist
.
GetLength
();
for
(
unsigned
i
=
old_size
;
i
<
new_size
;
++
i
)
instance
.
LookupRemoteTag
(
playlist
.
queue
.
Get
(
i
).
GetURI
());
return
CommandResult
::
OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment