summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2014-04-01 21:38:07 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2014-04-01 21:38:07 +0200
commit9ddaf4ef8cce43ad1ae9d3fdbedab2e63f40ca10 (patch)
treef68f4c43df4946608b5d971af40f0e78b2170fbf
parent97b557384836660bbff02198e0407d70bdd65705 (diff)
downloadyoutube-dl-9ddaf4ef8cce43ad1ae9d3fdbedab2e63f40ca10.tar.gz
youtube-dl-9ddaf4ef8cce43ad1ae9d3fdbedab2e63f40ca10.zip
[comedycentral] Change XPath .//guid to ./guid (fixes #2668)
It fails to find the element in python 2.6 and it's not required, the element is a direct child of the item node.
-rw-r--r--youtube_dl/extractor/comedycentral.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py
index 970df86ef..40870cb86 100644
--- a/youtube_dl/extractor/comedycentral.py
+++ b/youtube_dl/extractor/comedycentral.py
@@ -165,7 +165,7 @@ class ComedyCentralShowsIE(InfoExtractor):
content = itemEl.find('.//{http://search.yahoo.com/mrss/}content')
duration = float_or_none(content.attrib.get('duration'))
mediagen_url = content.attrib['url']
- guid = itemEl.find('.//guid').text.rpartition(':')[-1]
+ guid = itemEl.find('./guid').text.rpartition(':')[-1]
cdoc = self._download_xml(
mediagen_url, epTitle,