Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
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
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Иван Мажукин
  • mpd
  • Repository

Switch branch/tag
  • mpd
  • src
  • db
  • plugins
  • simple
  • DirectorySave.cxx
Find file
BlameHistoryPermalink
  • datasone's avatar
    db/SimpleDatabasePlugin: store `in_playlist` value of songs into database · d4f3dd49
    datasone authored Apr 12, 2023
    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.
    d4f3dd49
DirectorySave.cxx 4.81 KB
EditWeb IDE

Replace DirectorySave.cxx

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.