Adding tracks to the collection

Seb Ruiz ruiz at kde.org
Tue Oct 21 05:37:19 CEST 2008


2008/10/21 Manuel Amador (Rudd-O) <rudd-o at rudd-o.com>:
> Is there an API guide for scripters?  I have the link to the amarok 2.0
> scripting guide but I don't see an API documentation there.

http://amarok.kde.org/wiki/Development/Scripting_HowTo_2.0
http://amarok.kde.org/wiki/Development/Script_API
http://amarok.kde.org/qtscriptbindings/index.html

>
> El Lunes 20 Octubre 2008, Seb Ruiz escribió:
>> 2008/10/21 Ian Monroe <ian at monroe.nu>:
>> > On Mon, Oct 20, 2008 at 4:57 PM, Seb Ruiz <ruiz at kde.org> wrote:
>> >> 2008/10/21 Ian Monroe <ian at monroe.nu>:
>> >>> 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.
>> >>
>> >> Sure, perhaps not, unless we want to allow third part scripts to build
>> >> collections (bad idea perhaps). Eg, importers from arbitrary (iTunes,
>> >> rythymbox collections etc)
>> >
>> > Actually I think enabling this is a very cool idea. :)
>> >
>> >> The QtScript bindings that we have don't expose the Meta objects to
>> >> scripts.
>> >
>> > This isn't true. They are available via the playlist manipulation
>> > stuff. You can even edit tags. Collections aren't really exposed at
>> > all though.
>>
>> Really - wow I must have overlooked this.
>
>
> --
>
>        Manuel Amador (Rudd-O) <rudd-o at rudd-o.com>
>        Rudd-O.com - http://rudd-o.com/
>        GPG key ID 0xC8D28B92 at http://wwwkeys.pgp.net/
>
> But like the Good Book says... There's BIGGER DEALS to come!
>
>
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>
>



-- 
Seb Ruiz

http://www.sebruiz.net/
http://amarok.kde.org/


More information about the Amarok-devel mailing list