Summary: | Juk no longer finds covers | ||
---|---|---|---|
Product: | [Applications] juk | Reporter: | Alessandro Dal Grande <aledj> |
Component: | general | Assignee: | Scott Wheeler <wheeler> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sleepkreep |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alessandro Dal Grande
2005-09-06 14:52:03 UTC
This is because of a change in the way KHTML works. JuK wasn't properly using KHTML so a change in KHTML exposed a bug in JuK's handling of the feature. I'm surprised it didn't crash. Anyways, the bug is fixed in /trunk, and I thought I backported the fix but it appears that I forgot. I will backport and the fix should work in 3.4.3 (and will also be in 3.5). SVN commit 457901 by mpyne: Backport fix for bug 112118 (JuK Google cover search doesn't work anymore) to KDE 3.4. Sorry about forgetting to do so earlier. BUG:112118 M +13 -1 googlefetcher.cpp --- branches/KDE/3.4/kdemultimedia/juk/googlefetcher.cpp #457900:457901 @@ -18,6 +18,8 @@ #include <dom/dom_exception.h> #include <dom/dom2_traversal.h> +#include <khtml_part.h> + #include <kapplication.h> #include <kstatusbar.h> #include <kmainwindow.h> @@ -85,8 +87,18 @@ // choice if we're going to screen-scrape Google. try { - DOM::HTMLDocument search; + KHTMLPart part; + + // Create empty document. + + part.begin(); + part.end(); + + DOM::HTMLDocument search = part.htmlDocument(); search.setAsync(false); // Grab the document before proceeding. + + kdDebug(65432) << "Performing Google Search: " << url << endl; + search.load(url.url()); DOM::HTMLElement body = search.body(); *** Bug 114979 has been marked as a duplicate of this bug. *** |