One of the changes I implemented involves supporting thumbnail images from RSS feeds. I noticed that with feeds from Eka's however, they are not working. The warning reported by the system was that "file://static.aryion.com/g4/thumb/..." cannot be opened... which makes sense as the correct URL should be "http://static.aryion.com/g4/thumb/..." instead! I looked at the source of the RSS file and noticed that the problem lies there; The thumbnail element does not prefix URL's with "http://" but instead only with "//". You can easily see this by looking at the feed source and analyzing each <media:thumbnail> element:
view-source:https://aryion.com/g4/latest.php?rss=1
Here's an example of an incorrectly formatted line, followed by how that line should look like instead:
- Code: Select all
<media:thumbnail url="//static.aryion.com/g4/thumb/423973-59518-thumb.jpg"/>
<media:thumbnail url="http://static.aryion.com/g4/thumb/423973-59518-thumb.jpg"/>
This is a bug, and in other feeds that's not how the URL is formatted. For instance if you look at the BBC feed, you can see that the URL for thumbnails starts with "http://" as I described:
view-source:http://feeds.bbci.co.uk/news/rss.xml
Can this be fixed please? It should only require an admin making a minor tweak to the RSS generator script, modifying the prefix from "//" to "http://" or "https://". Thank you.