Re: [Rhythmbox-devel] Magnatune catalog/purchasing plugin



On Tue, 2006-20-06 at 11:23 +1000, James "Doc" Livingston wrote:
> It might be worth asking if there is a compressed version of the .xml
> file available too, for example a gzipped version is ~270kb instead of
> 5.8Mb - and that would save a lot of bandwidth. If there is anything he
> needs to know about Rhythmbox which you don't feel up to answering, feel
> free to pass my address on.

I'll do that, because that would definitely speed things up a bit. I've
also reported the async bug, it's at:
http://bugzilla.gnome.org/show_bug.cgi?id=345351

> On a related note, we can probably do some other things to reduce the
> bandwidth. The most obvious would be caching the xml file as
> ~/.gnome2/rhythmbox/magnatune/song_info.xml (or whatever) and only
> downloading it every now and then, and in the background. We could
> probably send the HTTP magic needed to get the "it hasn't changed"
> response, so we know not to update.

That's also a good idea anyway, in case someone manages to leave
rhythmbox open for a month or something, and doesn't get any new
artists. I'll work on that today. How would I get the plugin to do the
periodic check? Is there some rhythmbox timing object I register a
callback with?

Is there a better way to get the path of the rhythmbox directory than
hard-coding it?

> Rhythmbox supports attaching extra data, but it's not currently exposed
> to Python.
> 
> One method of doing it (which would be fairly simple) would be to give
> each entry a dictionary, accessable via "entry.data" or something - how
> does that sound?

That sounds perfect. I assume the entry gets passed to whatever handler
I have for the entry view's show-popup signal.

--
Adam Zimmerman <adam_zimmerman sfu ca>

CREATIVITY  - http://mirrors.creativecommons.org/movingimages/Building_on_the_Past.mpg
ALWAYS      - http://www.musiccreators.ca/
BUILDS      - http://www.ubuntu.com/
ON THE PAST - http://www.theopencd.org/
--

"The best that we can do is to be kindly and helpful toward our friends and
 fellow passengers who are clinging to the same speck of dirt while we are
 drifting side by side to our common doom."
                        [Clarence Darrow]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]