1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[mtvservices] Fix title extraction under python 2

This commit is contained in:
Sergey M․ 2015-08-28 22:10:49 +06:00
parent 054d43bb11
commit 20149a5da1

View File

@ -142,7 +142,7 @@ def _get_video_info(self, itemdoc):
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