Mitele May not have a title

Example episode:
http://www.mitele.es/programas-tv/cuarto-milenio/temporada-6/programa-226/

Has no title, and trying to download just gives a crash error. The error
is not there because something actually failed, but just because the
video has no title. Setting it to NO_TITLE default makes it work
properly, and only points out that it is missing in a download list.
This commit is contained in:
DarkZeros 2016-06-12 00:37:53 +01:00
parent 98960c911c
commit db18b80c60

View File

@ -70,7 +70,7 @@ class MiTeleIE(InfoExtractor):
self._sort_formats(formats) self._sort_formats(formats)
title = self._search_regex( title = self._search_regex(
r'class="Destacado-text"[^>]*>\s*<strong>([^<]+)</strong>', webpage, 'title') r'class="Destacado-text"[^>]*>\s*<strong>([^<]+)</strong>', webpage, 'title', 'NO_TITLE')
video_id = self._search_regex( video_id = self._search_regex(
r'data-media-id\s*=\s*"([^"]+)"', webpage, r'data-media-id\s*=\s*"([^"]+)"', webpage,