fetching data from IMDB
Semi Gr
ssemigr at gmail.com
Sat Jul 12 18:30:28 MDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://forge.novell.com/pipermail/tellico-users/attachments/20080713/c6defeb3/attachment.html
More information about the tellico-users
mailing list