summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2010-11-13 17:52:28 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2010-11-13 17:52:28 +0200
commit989e484ce4351e10db4dd073b346b739d5ed67cc (patch)
treeccf5066fc363edad659ab386862f33f86b630a10
parentc908ce13a73dfbe536ef8441df73ed1cda5f812f (diff)
downloadvdr-plugin-webvideo-989e484ce4351e10db4dd073b346b739d5ed67cc.tar.gz
vdr-plugin-webvideo-989e484ce4351e10db4dd073b346b739d5ed67cc.tar.bz2
fixed google search
-rw-r--r--HISTORY2
-rw-r--r--templates/video.google.com/searchresults.xsl4
2 files changed, 3 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 227ca90..ef03651 100644
--- a/HISTORY
+++ b/HISTORY
@@ -214,4 +214,4 @@ Video site modules:
by Matti Lehtimäki).
- Bookmarklet for sending a video from web browser to VDR.
- Some Youtube links were broken.
-- Fixed metacafe video module.
+- Fixed Metacafe and Google video modules.
diff --git a/templates/video.google.com/searchresults.xsl b/templates/video.google.com/searchresults.xsl
index 5069825..806c60e 100644
--- a/templates/video.google.com/searchresults.xsl
+++ b/templates/video.google.com/searchresults.xsl
@@ -9,7 +9,7 @@
<title>Search results</title>
<xsl:choose>
- <xsl:when test="not(//li[@class='g videobox s']/table/tr/td/h3/a)">
+ <xsl:when test="not(//li[contains(@class, 'videobox')]//td/h3/a)">
<textarea>
<label>
<xsl:text>Your search did not return any results.</xsl:text>
@@ -18,7 +18,7 @@
</xsl:when>
<xsl:otherwise>
- <xsl:for-each select="//li[@class='g videobox s']/table/tr/td/h3/a">
+ <xsl:for-each select="//li[contains(@class, 'videobox')]//td/h3/a">
<xsl:choose>
<xsl:when test="starts-with(@href, 'http://www.youtube.com/')">
<link>