Image 01
profile-image

Skool182

Thomas DUB
test
Photo of the Day

Plasma 4 Extensions 67 comments

Score 68.0%
Dec 04 2010
damn autorefresh... - Dec 16 2012
I've just tested this and it worked for me :
- download and untar the archive
- download the patch : http://skool.blasters.fr/BonjourMadame.patch
- goto the v2.1.1 directory
- apply patch with "patch -p1 < /path/to/BonjourMadame.patch"
- apply the Readme.txt procedure to compile and install

Maybe in your case, KDE use the old version of the build. Maybe try a "make uninstall" for removing the old version. - Dec 16 2012
I've just tested this and it worked for me :
- download and untar the archive
- download the patch : http://skool.blasters.fr/BonjourMadame.patch
- goto the v2.1.1 directory
- apply patch with "patch -p1 < /path/to/BonjourMadame.patch"
- apply the Readme.txt procedure to compile and install

Maybe in your case, KDE use the old version of the build. Maybe try a "make uninstall" for removing the old version. - Dec 16 2012
Did you use a fresh copy of potd archive ?
I know that my patch file is not clean, but I'm not remembering how to make proprely a patch file.

I will search the correct method to do that. - Dec 16 2012
I've made a little patch for BonjourMadame provider.
Copy/pastle into a BonjourMadame.patch on the potd dir, and use patch < BonjourMadame.patch
It's possible that it will ask you the file to patch, just enter "providers/BonjourMadame.cpp"
and run make / make install on the build directory.
Quote:

--- providers/BonjourMadame.cpp 2012-10-15 20:10:40.219368710 +0200
+++ providers/BonjourMadame.cpp 2012-10-15 20:12:51.243372722 +0200
@@ -103,7 +103,7 @@

void BonjourMadame::parseMainPage(QByteArray source)
{
- int photoTagStart = source.indexOf("<div class=\"photo\">") + (int)strlen("<div class=\"photo\">");
+ int photoTagStart = source.indexOf("<div class=\"photo-panel\">") + (int)strlen("<div class=\"photo-panel\">");
int imgStart = source.indexOf("<img src=\"", photoTagStart) + (int)strlen("<img src=\"");
int imgEnd = source.indexOf("\"", imgStart);

@@ -128,7 +128,7 @@
m_OldUrl = newUrl;

// get photographer
- int photographerStart = source.indexOf("<div class=\"caption\">") + (int)strlen("<div class=\"caption\">");
+ int photographerStart = source.indexOf("<div class=\"copy\">") + (int)strlen("<div class=\"copy\">");
int photographerEnd = source.indexOf("</div>", photographerStart);

QString photographer = QString::fromUtf8(source.mid(photographerStart, photographerEnd - photographerStart).trimmed());
- Dec 16 2012