[Panel-devel] [Bug 153872] Compic Strip Plasmoid does not load XKCD comic

Markus Mauder mmauder at gmail.com
Wed Dec 12 08:29:25 CET 2007


> in any case, i can confirm that the xkcd loader does indeed work as long as there is a comic available for that day.
Are you sure? Looking at the code here the data engine just tries to
get an id of however many days elapsed since 2006-12-06 (~ 371 days
today?) while the number is currently at 356. As there are no daily
updates this approach cannot really work.

> it would probably make sense to show a "no comic available today" message in that case, or even if possible just show the latest one.
I sent Tobias a patch a while back which retrieves the currently
newest number and calculates earlier ids relative from there. This
reliably gets us the newest picture every day. It has its own set of
problems though:
- it doesn't really correlate the date to the strip. There is no
information about the publishing date on the site, except in the rss
feed. I tried using that but since it's only three strips long that
didn't work too well either.
- the caching may give us the same picture twice while browsing
earlier strips when one was retrieved twice because no update happened
for a day.

I don't know if Tobias has had a chance to look the patch over yet
though. It doesn't seem to have been commited.


More information about the Panel-devel mailing list