* Joerg Lehmann [22:13 18/11/04 CET]:
Not intrusive at all. You just define you're login name and password in pytonerc and there is nothing else to do.
Actually, I don't like username and password as configuration options in the general section too much. Maybe one should create a different section for audioscrobbler. But see below.
Yep, I also think this is a problem it is just a quick hack to make it usable.
Still, if you have already have implemented this feature, just send the patch to me or to the list and I'll have a look on it.
Ok, I'm using it for 2 days now and it works.
Here is the patch, the scrobber service module and the audioscrobber module (I plan on using it elsewhere that's why I separated them).
The separation is fine. But we should only start the scrobbler service if it is used.
Indeed, this think is always triggered and that's not really the ideal behavior, I suppose there is plenty of people that don't want a site to know they are listening to the next unreleased big hit they just got via p2p.
But this all brings me to the point that it would actually be very nice, if we could make the audioscrobbler service the first PyTone plugin. These plugins then probably could handle their configuration files separately.
Would be a nice feature.
What do you think? It should not be too difficult to implement. Maybe, we have to make some iterations with the interface but in the end I think it would be useful for others as well. We could also provide a generic plugin class, which already does the setup of the threading stuff, etc.
Seems like a great idea.
We could have a directory in .pytonerc that stores all plugins. We prepend this directory to sys.path, query the conffile for the list of plugin to load. Then we call the start method of all the plugins (or anything else) and it's ok.
I've got the felling this schema is good for plugins that gets informations, but if you want to provide pieces of information (retagging, ...) they will also need to send them. Maybe the hub should also be able to manage 'information providers' and 'information requesters'
Well, I'll try all these ideas tomorrow, please make comments about all this where you see fit.