Adding tracks to the collection
Ian Monroe
ian at monroe.nu
Mon Oct 20 15:52:39 CEST 2008
On Mon, Oct 20, 2008 at 4:13 AM, Seb Ruiz <ruiz at kde.org> wrote:
> Hi Max,
> I'd like to be able to give scripts access to insert or update tracks
> into the local sql collection database. My primary reason for doing
> this is to workaround numerous issues within QtScript combined with
> QtSql. Essentially, I'd like to be able to do something to the effect
> of sqlCollection()->insertTrack( url ); and add associated statistical
> data to that track (playcount, score etc).
>
> What is your opinion on exposing this sort of functionality? If you're
> okay with that, what would be the best implementation?
>
> Cheers,
> Seb
I really can't imagine any other script ever needing to do this. So to me
that means either you should rethink having it be a script at all or it
means that you shouldn't worry about making the API clean, since its
essentially an internal API. So do whatever makes implementation easy.
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20081020/5f5c1e6a/attachment.htm
More information about the Amarok-devel
mailing list