[PATCH] Fix for ibs fetcher
Riccardo Gori
goriccardo at gmail.com
Sun Sep 7 02:48:07 MDT 2008
Hello,
here is a fix for the ibs.it fetcher when you try to search by title or author.
Thank you!
Riccardo
diff --git a/src/fetch/ibsfetcher.cpp b/src/fetch/ibsfetcher.cpp
--- a/src/fetch/ibsfetcher.cpp
+++ b/src/fetch/ibsfetcher.cpp
@@ -151,7 +151,7 @@ void IBSFetcher::slotComplete(KJob*) {
QString s = Tellico::decodeHTML(QString(data));
// really specific regexp
- QString pat = QString::fromLatin1("http://www.internetbookshop.it/code/");
+ QString pat = QString::fromLatin1("http://www.ibs.it/code/");
QRegExp anchorRx(QString::fromLatin1("<a\\s+[^>]*href\\s*=\\s*[\"'](") +
QRegExp::escape(pat) +
QString::fromLatin1("[^\"]*)\"[^>]*><b>([^<]+)<"),
Qt::CaseInsensitive);
More information about the tellico-users
mailing list