[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/juk
From:       Nathan Toone <nathan () toonetown ! com>
Date:       2005-01-15 22:56:15
Message-ID: 20050115225615.58A2D1CF99 () office ! kde ! org
[Download RAW message or body]

CVS commit by toone: 

Fix for parsing of google results when google suggests a spelling change.

BUG:96450


  M +3 -3      googlefetcher.cpp   1.14


--- kdemultimedia/juk/googlefetcher.cpp  #1.13:1.14
@@ -85,11 +85,11 @@ void GoogleFetcher::slotLoadImageURLs(Go
     DOM::NodeList topLevelNodes = body.childNodes();
 
-    // On google results, if the fifth (0-based) node is a "Font" node, 
-    // then there are results.  Otherwise, there are no results.
+    // On google results, if the fifth (0-based) node is a "Script" node, 
+    // then there are no results.  Otherwise, there are results.
 
     DOM::Node fourthNode = topLevelNodes.item(4);
 
     if(topLevelNodes.length() <= 5 ||
-       topLevelNodes.item(4).nodeName().string() != "font")
+       topLevelNodes.item(4).nodeName().string() == "script")
     {
         emit signalNewSearch(m_imageList);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic