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

Starred playlist content is lost, when songs moved to a different path #1403

Closed
3 tasks done
AllKind opened this issue Mar 17, 2024 · 4 comments
Closed
3 tasks done

Comments

@AllKind
Copy link

AllKind commented Mar 17, 2024

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug

I moved some folders of my library to a different path. Now all my starred playlists (using these folders) are empty.
I tried to create symbolic links at the old locations, but that didn't help.
Question: Where are the "starred" playlists stored? Maybe I could restore them from a backup?

To Reproduce
Create a playlist with some songs in it.
Star it.
(Maybe close strawberry - not sure if that is needed).
Move the songs elsewhere.
(Start strawberry)
Result: starred playlist is empty.

Expected behavior
If "Mark dissapeared songs unavailable" is activated in settings -> Collection, then the unavailable songs should be greyed, as they are in "regular" playlists.

System Information:

  • Operating system: Linux Mint 21.3
  • Strawberry Version: 1.0.23
@jonaski
Copy link
Member

jonaski commented Mar 17, 2024

I can't reproduce this if the "Mark disappeared songs unavailable" option is on (checked), with the behavior you describe it seems the option was off.
Could you check again and see if you can reproduce it consistently.
The database is in ~/.local/share/strawberry/strawberry/strawberry.db it contains the collection and playlists, please backup this first.

@AllKind
Copy link
Author

AllKind commented Mar 17, 2024

Ah, I now see the missing thing.
I also removed those folders from settings -> Collection. (I moved all the old folders into one directory and added that as collection folder.)
Adding a symbolic link and adding that as folder in settings -> Collection does not help, as strawberry resolves the link and adds the destination of the link to the list of collection folders.

So:
If the folder is missing the songs get greyed.
But if the folder is also removed from Settings -> Collection, the playlist becomes blank.

Edit: thanks for the info about the database. I was able to restore the db from a day before the changes and export them as regular .m3u. With some search/replace I'll be able to add them back without a complete library re-scan (Which takes a lot of time with 1.6 TB of music.), because I added quite a lot of music. Also added more songs to some playlists, which I now don't have to manually recover.

@jonaski
Copy link
Member

jonaski commented Mar 18, 2024

If you remove a collection directory, those playlists with songs that point to that will be broken as it's linked with the collection database song IDs, that's the way it's structured, so no easy way to solve that.
I will look into creating an option for following symbolic links optional, but I need to check if that will be safe to do in regard to the watcher/scanner.

@jonaski jonaski closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@AllKind
Copy link
Author

AllKind commented Mar 19, 2024

Maybe a warning, about the starred playlists are about to be lost - on collection folder removal, would be helpful and may prevent others falling into the same trap as me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants