From: Sergey M․ Date: Fri, 28 Aug 2015 16:10:49 +0000 (+0600) Subject: [mtvservices] Fix title extraction under python 2 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=20149a5da195b8ab5e50a4babfa0107ebf279b7f;p=youtube-dl [mtvservices] Fix title extraction under python 2 --- diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index 4e4358151..a597714e9 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -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