Collections on External HDD

Dan Meltzer parallelgrapefruit at gmail.com
Sun Feb 15 00:00:56 CET 2009


On Sun, Feb 8, 2009 at 11:20 AM, Casey Link <unnamedrambler at gmail.com> wrote:
> From Maxx:
>
> ---------- Forwarded message ----------
> From: Maximilian Kossick <maximilian.kossick at googlemail.com>
> Date: Sun, Feb 8, 2009 at 7:29 AM
> Subject: Re: Collections on External HDD
> To: Casey Link <unnamedrambler at gmail.com>
>
>
> Porting MountPointManager and the device plugins in devices/ to use
> Solid. Ideally they should be moved into SqlCollection, because that's
> where the code logically belongs, but loading plugins from a plugin
> might be tricky. The database schema is already
> DynamicCollectio-enabled. After porting to Solid, emitting a
> collectionUpdated signal whenever MPM detects a device change is
> probably the only thing left to do.

I'm attaching a patch that does this.  I havn't ported the nfs or smb
devices yet, so they are not dynamic collection enabled at this point.

It detects when devices are added and removed, and creates an
appropriate id for them in the database.  I'm not certain what will
happen if a mysql database already exists (with everything having a
deviceid of -1) but I'd love to find out if someone could try it...

The one thing this doesn't do yet is hide the items in the
collectionbrowser if they are not available.  I need to look at the
1.4 sources to figure out how this was done.

Dan,
>
> Max
>
> On Sun, Feb 8, 2009 at 2:41 PM, Casey Link <unnamedrambler at gmail.com> wrote:
>> Any idea how/where we should start on this?
>>
>> Casey
>>
>> On Sunday 08 February 2009 13:31:40 Casey Link wrote:
>>> > Basically, I have all my music on an external hard drive. While this is
>>> > normally connected to my laptop, it is sometimes not mounted. The issue
>>> > is that every time I start Amarok and then mount my hard drive a full
>>> > collection rescan takes place. This means of course, that all my
>>> > modifications to my collection are lost etc... If I start Amarok without
>>> > mounting my hard drive, then close Amarok, mount my hard drive and
>>> > restart Amarok the same thing happens.
>>> >
>>> > I assume this is to do with the incomplete implementation of non-local
>>> > collections? I was wondering if someone could point me in the direction
>>> > of where this should be fixed / implemented so that I might have a go.
>>>
>>> I too have this problem.. and it is very annoying. Amarok should
>>> definitely not freak out when collection folders are missing. Perhaps
>>> Mark will know something as he's spent a lot of time fixing the
>>> collection scanner.
>>
>>
>> This is the whole dynamic collection feature that we had in Amarok 1. Sadly
>> this has not yet been ported to 2.0. However, i'm not sure where to start
>> looking---sending an email to maxx_k is probably the best bet for pointers.
>>
>> Leo
>> _______________________________________________
>> Amarok mailing list
>> Amarok at kde.org
>> https://mail.kde.org/mailman/listinfo/amarok
>>
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynamic-collections.diff
Type: text/x-patch
Size: 27814 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/amarok-devel/attachments/20090214/a74af99a/attachment-0001.diff 


More information about the Amarok-devel mailing list