------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=111507
------- Additional Comments From slaout linux62 org 2005-09-03 17:21 -------
I proposed to look at the index page as a fallback mechanisme.
Yes, it can to not exists, but in the majority of the cases, it will.
Akregator just have to ask the root URL: http://linuxfr.org/
It will be automatically redirected by the webserver to the right index page:
- index.php
- index.html
- index.xthml
- pub/index.html in the case of LinuxFr
- Whatever crazy other URL...
like any Web Browser is redirected.
Of course this should be the last method to get a favicon.
But I disagree: Akregator should at last TRY.
Some webdevelopers could not know how to make .ico files, he/she could name it
favicon.png (like I've done for years before knowing the comandline to do
the .ico file)... That works in any browser, so...
This is better than proposing no icon at all.
And if you care about traffic, fetch it only ONCE!
At feed creation or every month/year if no icon has been found.
Also fetch only the first ~500 bytes and abord if nothing has been found...
Some forums on the Web allow to use the favicon of the author's webpage as a n
avatar: they only fetch the first bytes and it works.
Akregator custom icons are good of course for sites with NO icon, but if it
can be done automatically for some sites, why complicate the life of users:
The user should save the icon to a place: not obvious (should look and
UNDERSTAND the HTML source and retreive it), and then load it, or look at the
KDE favicons cache.
Oh yes: Konqueror can see the favicons and SAVE IT under:
/var/tmp/kdecache-$USER/favicons
For LinuxFr on my system:
/var/tmp/kdecache-seb/favicons/linuxfr.org_images_favicon.png
You can retreive it in the code with the following method:
QString icon = KMimeType::iconForURL(url.url());
And that's all. Not time consuming, not difficult to implement...
At least, before to retreive the icon by itself, Akregator should call that
method to know if KDE have the favicon in its cache (I don't know if it ALSO
try to fetch the icon of the URL if it is not in cache yet: I don't think
so).
See also KMimeType::favIconForURL() : perhapse Akregator already use it...
I hope to have been useful for the solving of this bug.
|