Revision 884294

Go back to digest for 16th November 2008

Features in Multimedia

Nikolaj Hald Nielsen committed changes in /trunk/extragear/multimedia/amarok/src:

A ton of improvements to the SQL playlists ( the user playlists in the playlist browser )

1. Playlist generated from files during collection scanning now have a urlid, this is used to ensure that duplicates are not added when rescanning. Instead the playlist is recreated so any updates to the playlist file is reflected in the SQL playlist
2. Streams loaded from a playlist are now given propper title, album and artist values if no service recognizes them. This means that it now works well for keeping a list of, for instance, favorite books from the librivox service.
3. After a collection rescan, any SQL playlists generated or updated based on a playlist file would contain many tracks with no metata at all since the scanner did not give them any. Now a reload of the playlist is forced when it is subsequently used, giving collections a chance to add info about any tracks they know.

All this goodness comes at a cost though.
After this update, all old SQL playlists will be deleted ( no files are affected, only playlists stored in the database ).
Any playlists based on files on disk can be recovered simply by rescanning the collection.
If you have any custom made playlists that you care about, they can be added to the playlist and exported to a file ( and later readded ) _BEFORE_ this update is applied.

File Changes

Modified 7 files
  • /trunk/extragear/multimedia/amarok/src
  •   /meta/SqlPlaylist.cpp
  •   /meta/SqlPlaylist.h
  •   /playlistmanager/PlaylistManager.cpp
  •   /playlistmanager/PlaylistManager.h
  •   /browsers/playlistbrowser/SqlPlaylistGroup.cpp
  •   /browsers/playlistbrowser/UserPlaylistModel.cpp
  •   /browsers/playlistbrowser/UserPlaylistModel.h
7 files changed in total