Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:KDE:Extra
plasmoid-potd
plasmoid-potd-2.1.1-provider-Wiki.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plasmoid-potd-2.1.1-provider-Wiki.patch of Package plasmoid-potd
--- providers/Wiki.cpp.orig 2012-12-14 10:45:38.725719046 +0100 +++ providers/Wiki.cpp 2012-12-14 11:11:19.375166939 +0100 @@ -181,7 +181,7 @@ void Wiki::parseMainPage( QByteArray source ) { - int photoStart = source.indexOf("src=\"http://upload.wikimedia.org/wikipedia/commons/thumb/") + (int)strlen("src=\"http://upload.wikimedia.org/wikipedia/commons/thumb/"); + int photoStart = source.indexOf("src=\"//upload.wikimedia.org/wikipedia/commons/thumb/") + (int)strlen("src=\"//upload.wikimedia.org/wikipedia/commons/thumb/"); int photoEnd = source.indexOf("\"", photoStart); //make a change in the url to download the 600px version, don't know if it's useful @@ -214,7 +214,7 @@ m_title.remove( m_title.lastIndexOf("."), m_title.length() ); //now it takes the description based on the system locale, cooler - tmp = QString("class=\"description " + m_lang + "\" xml:lang=\"" + m_lang + "\">"); + tmp = QString("class=\"description " + m_lang + "\">"); int infoStart = source.indexOf(tmp.toUtf8()) + tmp.length(); int infoEnd = source.indexOf("</span>", infoStart);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor