Suggested Songs gets wedged on a single artist

Seb Ruiz ruiz at kde.org
Sun Sep 23 00:55:39 UTC 2007


On 23/09/2007, Jer Johnson <jer at gweep.net> wrote:
> I'd included a new chunk of code in that post, from the
> source file dynamicmode.cpp line 378 (approximately):
>
> KURL::List DynamicMode::retrieveTracks( const uint trackCount )
> {
> DEBUG_BLOCK
>     KURL::List retrieval;
>
>     if(( m_cachedItemSet.count() <= trackCount ) || (appendType() == SUGGESTION) )
>       {
>         debug() << "Refreshing cached items" << endl;
>         rebuildCachedItemSet();
>       }
>
>
> the only addition I've made is the "  || (appendType() == SUGGESTION) " ,
> which re-generates the cached list of Suggested Artists.
> this negates the usefulness of the cache, but makes the Suggested Artists
> playlist work properly.  as a user, I prefer the latter.

Yes, this looks good. I'll do this now. Thanks for the catch.


-- 
Seb Ruiz

http://www.sebruiz.net/



More information about the Amarok mailing list