13 Jul 02:27
fetching data from IMDB
From: Semi Gr <ssemigr@...>
Subject: fetching data from IMDB
Newsgroups: gmane.comp.kde.tellico.general
Date: 2008-07-13 00:30:28 GMT
Subject: fetching data from IMDB
Newsgroups: gmane.comp.kde.tellico.general
Date: 2008-07-13 00:30:28 GMT
Hi,
looks like IMDB again changed the html code, and Tellico 1.3.3
doesn't fetch plot summary.
I played with the code and found out that the following change in imdbfetcher.cpp:
instead of
QRegExp plotRx(QString::fromLatin1("Plot (?:outline|summary):(.*)<[^/].*</"), false);
put
QRegExp plotRx(QString::fromLatin1("Plot:</h5>(.*)(</|\\|)"), false);
does the trick. The only problem is that if there is no plot summary you end up with
the text "add synopsis" as a plot summary in tellico. So it's not perfect, but it's better then
nothing.
Disclaimer: I'm not really good in C++ or regular expressions.
Semi
_______________________________________________ tellico-users mailing list tellico-users@... http://forge.novell.com/mailman/listinfo/tellico-users
RSS Feed