- 22 May, 2023 1 commit
-
-
Max Kellermann authored
Without clearing all `in_playlist` flags, the songs will never be revealed again if they were hidden once by a CUE sheet, not even after the CUE sheet gets deleted or modified. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1784
-
- 21 May, 2023 1 commit
-
-
datasone authored
Fixes hide_playlist_targets not working after server restart Currently, `hide_playlists_targets` works by skipping songs with `in_playlist` value set to true in [`Directory::Walk`](https://github.com/MusicPlayerDaemon/MPD/blob/a57bcd02382947abbd961594cdf00302c0c7866a/src/db/plugins/simple/Directory.cxx#L237). But `in_playlist` is not stored and only updated in [`UpdateWalk::PurgeDanglingFromPlaylists`](https://github.com/MusicPlayerDaemon/MPD/blob/a57bcd02382947abbd961594cdf00302c0c7866a/src/db/update/Playlist.cxx#L139), which will only be executed while updating DB. This causes the problem that playlist target songs are correctly hidden after database update, but will remain visible after mpd server restarted. This pr solves the problem by storing `in_playlist` value of songs into the `SimpleDatabase` file.
-
- 03 Dec, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 23 Nov, 2021 2 commits
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
shorter Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 14 Oct, 2021 2 commits
-
-
Max Kellermann authored
This reduces duplicates in the music database by hiding the original song file when it is referenced by a CUE sheet. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1275
-
Max Kellermann authored
-
- 13 Oct, 2021 1 commit
-
-
Max Kellermann authored
-
- 05 Aug, 2021 2 commits
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1019
-
Max Kellermann authored
-
- 30 Jul, 2021 1 commit
-
-
Max Kellermann authored
this->OwnsTag() accesses fields that are not yet initialized.
-
- 04 Mar, 2021 1 commit
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Feb, 2021 1 commit
-
-
Max Kellermann authored
Enables the "Format" row in "playlistinfo" responses. https://github.com/MusicPlayerDaemon/MPD/issues/1094
-
- 16 Feb, 2021 1 commit
-
-
Max Kellermann authored
If the constructor moves from an ExportedSong instance which refers to somebody else's "Tag" instance, the newly constructed instance will instead refer to its own empty "tag_buffer" field. This broke SimpleDatabase::GetSong(), i.e. all songs on the queue restored from the state file or added using the "addid" command. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1089
-
- 15 Feb, 2021 1 commit
-
-
Max Kellermann authored
After commit 1afa33c3, an old bug was revealed: SimpleDatabase::GetSong() constructs an ExportedSong instance by moving the return value of Song::Export(), which causes the LightSong::tag field to be dangling on the moved-from ExportedSong::tag_buffer. This broke tags from CUE sheets. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1070
-
- 21 Jan, 2021 3 commits
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1048
-
Max Kellermann authored
-
Max Kellermann authored
-
- 17 Jan, 2021 1 commit
-
-
Rosen Penev authored
Found with cppcoreguidelines-interfaces-global-init Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 28 Oct, 2020 3 commits
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Max Kellermann authored
-
Max Kellermann authored
-
- 27 Oct, 2020 1 commit
-
-
Max Kellermann authored
-
- 06 Jul, 2020 1 commit
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/841
-
- 05 May, 2020 2 commits
-
-
Max Kellermann authored
The `db->close()` call was a `nullptr` dereference because the `db` variable had already been moved. Closes https://github.com/MusicPlayerDaemon/MPD/issues/839
-
Max Kellermann authored
-
- 04 May, 2020 1 commit
-
-
Rosen Penev authored
Reduces unstripped size. stripped size is the same. Also took the time to remove using std::placeholders. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 08 Apr, 2020 3 commits
-
-
Max Kellermann authored
Eliminates one strlen() call.
-
Max Kellermann authored
-
Max Kellermann authored
-
- 03 Apr, 2020 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 02 Apr, 2020 3 commits
-
-
Max Kellermann authored
Use std::string_view to avoid modifying the string for the temporary null terminators.
-
Max Kellermann authored
-
Max Kellermann authored
-