Bug 288076 - updated from 2.4.3 to 2.4.90 - saved playlists are shown twice
Summary: updated from 2.4.3 to 2.4.90 - saved playlists are shown twice
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: Playlists/Saved Playlists (other bugs)
Version First Reported In: 2.5.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 2.6
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 17:50 UTC by Martux
Modified: 2012-05-05 14:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.6
Sentry Crash Report:


Attachments
Here is a screenshot of the problem (60.92 KB, image/png)
2011-12-03 09:10 UTC, Martux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martux 2011-12-02 17:50:24 UTC
Version:           2.4.90 (2.5 beta) (using KDE 4.7.3) 
OS:                Linux

After updating amarok, all my saved playlists (xspf) are shown twice in the saved playlist sidebar.
Additionally all names are gone. E.g. playlists are shown without names.

Reproducible: Always

Steps to Reproduce:
-wipe all amarok files in $HOME/.kde4/share/config/ and $HOME/.kde4/share/apps/amarok
-start without letting collectionscanner run (collection left blank)
-close amarok, copy over "old" xspf-playlists generated with amarok or clementine into $HOME/.kde4/share/apps/amarok/playlists
start amarok again

Actual Results:  
as described above, playlists empty-named, shown twice.
Scanning collection has no influence.
In the overwiew tab "playlists on hd" only 9 playlists are shown as it would be correct, still 18 ones are listed.

Expected Results:  
Properly import all playlists under $HOME/.kde4/share/apps/amarok/playlists with the names properly displayed.

none i think
Comment 1 Martux 2011-12-02 17:55:53 UTC
Ohhh, EDIT:
Deleting one of those duplicate files also erases both entries and additionally the according file from disc!
Comment 2 Martux 2011-12-03 09:10:31 UTC
Created attachment 66330 [details]
Here is a screenshot of the problem
Comment 3 Bart Cerneels 2011-12-03 09:15:10 UTC
(In reply to comment #0)
> -close amarok, copy over "old" xspf-playlists generated with amarok or
> clementine into 
> start amarok again

Is it possible those playlist files (a copy) are also in the collection folder(s)? Collection scanner automatically imports those.

You are not supposed to copy them to $HOME/.kde4/share/apps/amarok/playlists manually, it's where amarok saves the file when you press the "save to playlist file" button.
Comment 4 Bart Cerneels 2011-12-03 09:16:18 UTC
(In reply to comment #2)
> Created an attachment (id=66330) [details]
> Here is a screenshot of the problem

That is a real bug. It's caused by doing a lookup using the playlist name. But AFAIKT it should only delete the first duplicate.
Comment 5 Bart Cerneels 2011-12-03 09:16:37 UTC
(In reply to comment #2)
> Created an attachment (id=66330) [details]
> Here is a screenshot of the problem

I don't see any empty playlist names.
Comment 6 Martux 2011-12-03 09:27:35 UTC
Oops you are right. I already named the files on that screenshot. 
Well, I want Amarok to display MY playlists in the sidebar, so copying them to $HOME/.kde4/share/apps/amarok/playlists worked for me. In my case it is even a symlink to another directory. This directory is residing under /home/user/mp3/playlists while my collection lives under /home/user/mp3/all, /home/user/mp3/mixed and so on. So I guess the answer to your question is no. 
I tried to just copy all the playlists to $HOME/.kde4/share/apps/amarok/playlists, because maybe the symlinking would be problematic, but no change.
Comment 7 Myriam Schweingruber 2012-02-26 14:56:28 UTC
Is this still valid with Amarok 2.5?
Comment 8 Martux 2012-02-26 18:02:29 UTC
Yes, still here with 2.5 and KDE-4.8.0
Comment 9 Myriam Schweingruber 2012-02-27 14:07:00 UTC
Thank you for the feedback.
Comment 10 Matěj Laitl 2012-05-05 14:59:42 UTC
Should be resolved with current development version, plase reopen if not. (you may want to wait till Amarok 2.6)