Преглед на файлове

[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.
Jaime Marquínez Ferrándiz преди 11 години
родител
ревизия
9ddaf4ef8c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      youtube_dl/extractor/comedycentral.py

+ 1 - 1
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,