Fallback iconImage

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sphere Offline
Team-XBMC Member
Posts: 1,177
Joined: Jul 2009
Reputation: 49
Location: Germany
Post: #1
Hi,

im working on a plugin and the website I scrape delivers low quality pics like "http://example.com/pics/12324234.jpg". I noticed that on some subpages there are hires versions of these pics "http://example.com/pics/12324234.jpg_hires.jpg". I guess that 90% of all images are accessible in hires with just appending "_hires.jpg" to the scraped filename.

The problem is the remaining 10% - xbmc gots a http 404 error on them.

So my question is, is it possible to set a fallback iconImage, something like
Code:
iconImage = 'http://example.com/pics/12324234.jpg|http://example.com/pics/12324234.jpg_hires.jpg'
?

Thanks,
sphere

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 25,671
Joined: Oct 2003
Reputation: 169
Post: #2
Not currently, no. In my video thumbs cache branch there is support for loading the iconimage if the thumbimage fails.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
sphere Offline
Team-XBMC Member
Posts: 1,177
Joined: Jul 2009
Reputation: 49
Location: Germany
Post: #3
ok, thanks anyway.

Would be nice to have something similar for post-eden Smile

regards,
sphere

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote