summaryrefslogtreecommitdiff
path: root/src/db
AgeCommit message (Collapse)Author
2021-08-05db/simple: prune CUE entries from database for non-existent songsMax Kellermann
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1019
2021-08-05db/update/Playlist: prepend "../" only for relative URIsMax Kellermann
Prepending "../" to absolute URIs would break them.
2021-08-05db/simple/Directory: remove obsolete API docMax Kellermann
2021-07-30db/simple/ExportedSong: check src.OwnsTag(), not this->OwnsTag()Max Kellermann
this->OwnsTag() accesses fields that are not yet initialized.
2021-05-31db/proxy: suppress -Wunused with libmpdclient<2.12Max Kellermann
2021-05-25db/update/Walk: load all .mpdignore files of all parent directoriesMax Kellermann
When updating everything, this did work, but if updating only a subdirectory, the ".mpdignore" in the parents were not used. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1172
2021-05-25db/update/Walk: move code to LoadExcludeList()Max Kellermann
2021-03-04use structured binding declarationsRosen Penev
Shorter. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-16db/simple: fix ExportedSong move constructor for non-owning sourcesMax Kellermann
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
2021-02-15db/simple: fix dangling LightSong::tag reference in moved ExportedSongMax Kellermann
After commit 1afa33c3c766af2, 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
2021-01-21db/simple/Song: Export() merges tags with "target"Max Kellermann
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1048
2021-01-21db/simple/ExportedSong: add option to own a TagMax Kellermann
2021-01-21db/simple/ExportedSong: new classMax Kellermann
2021-01-01copyright year 2021Max Kellermann
2020-11-04playlist/registry: add option "as_directory"Max Kellermann
This allows users to disable the "CUE files as directories" feature without having to disable the CUE playlist plugin completely. This feature has been annoying some users.
2020-10-28db/simple: purge songs for unavailable decoder plugins on updateMax Kellermann
2020-10-28db/simple/Directory: add `pure` attributeMax Kellermann
2020-10-28db/update/Walk: add code commentsMax Kellermann
2020-10-27db/simple: purge special directories for unavailable plugins on updateMax Kellermann
2020-10-27db/update/Walk: adjust lamba indentMax Kellermann
2020-10-08event/TimerEvent: add type alias for std::chrono::steady_clock::durationMax Kellermann
2020-09-23db/upnp: store UPnPDirContent in local variableMax Kellermann
Fixes use-after-free because the temporary goes out of scope.
2020-09-23LogLevel: rename DEFAULT to NOTICEMax Kellermann
"DEFAULT" is a bad name - all it says is that it's the default value, but it doesn't say what it means. The name NOTICE mimics the syslog level.
2020-09-17Merge branch 'v0.21.x' into masterMax Kellermann
2020-09-17db/update/InotifyUpdate: pass path by value to recursive_watch_subdirectories()Max Kellermann
2020-09-17db/update/InotifyUpdate: obey `.mpdignore` filesMax Kellermann
Closes https://github.com/MusicPlayerDaemon/MPD/issues/846
2020-09-16db/update/InotifyUpdate: split the WatchDirectory constructorMax Kellermann
2020-09-16db/update/InotifyUpdate: use class DirectoryReaderMax Kellermann
2020-09-16db/update/InotifyUpdate: convert pointer to referenceMax Kellermann
2020-09-16db/update/InotifyUpdate: remove commented log callMax Kellermann
2020-09-16db/update/InotifySource: use `auto`Max Kellermann
2020-09-16db/update/InotifySource: add `noexcept`Max Kellermann
2020-09-16db/update/InotifyQueue: add `noexcept`Max Kellermann
2020-09-16db/update/Inotify*: include cleanupMax Kellermann
2020-09-07*: use nullptr instead of NULLMax Kellermann
2020-07-06Merge tag 'v0.21.25'Max Kellermann
release v0.21.25
2020-07-06db/upnp/Object: root nodes are allowed to omit parent_id and nameMax Kellermann
This fixes compatibility with Plex DLNA. Closes https://github.com/MusicPlayerDaemon/MPD/issues/851
2020-07-06db/update/Service: avoid copying the mount point pathMax Kellermann
2020-07-06Merge branch 'v0.21.x'Max Kellermann
2020-07-06command/storage: automatically scan new mountsMax Kellermann
Closes https://github.com/MusicPlayerDaemon/MPD/issues/841
2020-07-06db/update/Walk: pass concatenated .mpdignore URI to storage.MapUTF8()Max Kellermann
Fixes the "Unrecognized URI" error with the udisks storage plugin, which is caused by the kludge in UdisksStorage::MapUTF8().
2020-05-30Merge branch 'v0.21.x'Max Kellermann
2020-05-30use std chr functionsRosen Penev
The ones in std have overloads for const char/char. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-29src/db: fitting libmpdclient interfaceShen-Ta Hsieh
2020-05-06Merge branch 'bind' of git://github.com/neheb/MPDMax Kellermann
2020-05-05Merge branch 'v0.21.x'Max Kellermann
2020-05-05db/simple: fix crash when mounting twiceMax Kellermann
The `db->close()` call was a `nullptr` dereference because the `db` variable had already been moved. Closes https://github.com/MusicPlayerDaemon/MPD/issues/839
2020-05-05meson.build: move VERSION and others to Version.hMax Kellermann
2020-05-05system/FileDescriptor: move to io/Max Kellermann
2020-05-04remove std::bind usage as much as possibleRosen Penev
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>