[Slideshow]: doesn't work for xkcd.com comics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Individual Screenlets |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
OS: Ubuntu 10.10
ver.:Screenlets 0.1.5, Slideshow Screenlet 1.3.3
The Slideshow Screenlet doesn't work properly for the RSS Feed (http://
In the Terminal I can see the following output:
---------------
Trying RSS...
http://
Restored instances from session 'default' ...
Opened and read.
4 items found.
Still variety of 4
Traceback (most recent call last):
File "SlideshowScree
imageget = urlopen(realimage)
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
protocol = req.get_type()
File "/usr/lib/
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type:
Trying Folder...
---------------
The error occurs because of the XML Style of the RSS Feed on this Page. The Slideshow Screenlet is looking for the Image URL within a "<media:
I don't know, if there are more RSS Feeds with this style. So I just did a little Workaround and just change this for xkcd.com, so there is an if-else statement to look for 'img src="..."' for the Image URL instead of the normal tag, if the self.mediaRSS_URL is "http://
It would be useful, if there are more RSS Feeds with this style, to take care of this.
Changed in indiv-screenlets: | |
status: | Fix Committed → Fix Released |
You are welcome to join individual screenlets developers team to update Slideshow screenlet. Adding more heuristics to find right URLs for images is completely okay, if it does not break existing functionality. I suggest that extended heuristics should be used if standard routine does not lead to detection of a proper image URL.