[mtvservices] Fix title extraction under python 2
authorSergey M․ <dstftw@gmail.com>
Fri, 28 Aug 2015 16:10:49 +0000 (22:10 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 28 Aug 2015 16:10:49 +0000 (22:10 +0600)
youtube_dl/extractor/mtv.py

index 4e4358151e9c041f3c608eeaf5643a5afb90153a..a597714e97c2cc7313449d6b52a64978d4023d9d 100644 (file)
@@ -142,7 +142,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
         if title_el is None:
             title_el = itemdoc.find('.//{http://search.yahoo.com/mrss/}title')
         if title_el is None:
-            title_el = itemdoc.find('.//title')
+            title_el = itemdoc.find('.//title') or itemdoc.find('./title')
             if title_el.text is None:
                 title_el = None