Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count of tracks in standard playlists not updated after deleting files #216

Closed
ghost opened this issue Jun 26, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Jun 26, 2017

Expected behavior

Counter of standard playlists are cleaned up after deleting files.

Actual behavior

After removing audio files standard playlists still show the previous number of tracks, including the deleted one. The counter is not updated and tracks are not removed from the audioplayer_playlist_tracks table.
The deleted tracks are not listed as they were deleted from the audioplayer_tracks table during the cleanup process at app start.

Steps to reproduce the behavior

  1. Open Audio Player, create a playlist, and add tracks per drag and drop.
  2. Open Files app and delete some tracks, included in the playlist.
  3. Open Audio Player and check the playlist counter in the sidebar. Count the tracks listed in playlist in main window. The number of tracks is different.

Possible solution

Deleting of tracks in audioplayer_playlist_tracks table which are no longer contained in audioplayer_tracks.

Server configuration

Audio Player version: (see /settings/apps)
2.1.0-beta.2

@ghost ghost added this to the 2.1.0 milestone Jun 26, 2017
@ghost ghost assigned Rello Jun 26, 2017
@ghost ghost changed the title Count of tracks in standard playlist not updated after deleting files Count of tracks in standard playlists not updated after deleting files Jun 26, 2017
Rello added a commit that referenced this issue Jun 26, 2017
register filehook to clean up library after file is deleted

#216
Rello added a commit that referenced this issue Jul 3, 2017
FileHook to remove deleted files from library
#216
@Rello Rello added testing and removed in progress labels Jul 3, 2017
Rello added a commit that referenced this issue Jul 27, 2017
Rello added a commit that referenced this issue Jul 28, 2017
ghost pushed a commit that referenced this issue Jul 30, 2017
@ghost ghost added pending release and removed testing labels Jul 30, 2017
@ghost ghost removed the pending release label Aug 29, 2017
@ghost ghost closed this as completed Aug 29, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant