Review Request: Implements the wishlist item 185397 - "Saved playlist default name could be smarter"

Dennis Francis dennisfrancis.in at gmail.com
Thu Nov 25 00:07:39 CET 2010



> On 2010-11-24 22:47:23, Sergey Ivanov wrote:
> > src/playlistmanager/sql/SqlUserPlaylistProvider.cpp, line 273
> > <http://git.reviewboard.kde.org/r/100168/diff/1/?file=4280#file4280line273>
> >
> >     I guess this call can be pushed to the new function. Then you won't need to pass name as parameter.

name is passed by reference. This is required in the following overloaded save() method call. But sure, I can remove the formatDateTime call as I am anyway overwriting name in generatePlaylistName().


- Dennis


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100168/#review395
-----------------------------------------------------------


On 2010-11-24 22:20:52, Dennis Francis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100168/
> -----------------------------------------------------------
> 
> (Updated 2010-11-24 22:20:52)
> 
> 
> Review request for Amarok.
> 
> 
> Summary
> -------
> 
> The playlist name is generated as per the rules :
> 
>     if ( singleArtist && singleAlbum )
>         playlistName = artist + " - " + album + ' - ' + shortDate
> 
>     else if ( !singleArtist && singleAlbum )
>         playlistName = "Various" + " - " + album + ' - ' + shortDate
> 
>     else if ( singleArtist && !singleAlbum )
>         playlistName = artist + " - " + "Various" + shortDate
> 
>     else
>         playlistName = "Various" + " - " + shortDate
> 
> If the there are no tracks, the playlist name is set to "Empty Playlist - " + shortDate
> 
> 
> This addresses bug 185397.
>     https://bugs.kde.org/show_bug.cgi?id=185397
> 
> 
> Diffs
> -----
> 
>   src/playlistmanager/sql/SqlUserPlaylistProvider.h 3a5a62e 
>   src/playlistmanager/sql/SqlUserPlaylistProvider.cpp d2ae5b9 
> 
> Diff: http://git.reviewboard.kde.org/r/100168/diff
> 
> 
> Testing
> -------
> 
> Tested different possibilities. It is working fine for me.
> 
> Please suggest better alternatives ( if any ) to the shortDate addition. Without the shortDate, playlist database lookup would be necessary to 
> calculate a unique name.
> 
> 
> Thanks,
> 
> Dennis
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20101124/97f67617/attachment-0001.htm 


More information about the Amarok-devel mailing list