youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 9ddaf4ef8cce43ad1ae9d3fdbedab2e63f40ca10
parent 97b557384836660bbff02198e0407d70bdd65705
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Tue,  1 Apr 2014 21:38:07 +0200

[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.

Diffstat:
Myoutube_dl/extractor/comedycentral.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,