From db18b80c60f407ad042ce7187c52bce203778ead Mon Sep 17 00:00:00 2001 From: DarkZeros Date: Sun, 12 Jun 2016 00:37:53 +0100 Subject: [PATCH] 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. --- youtube_dl/extractor/mitele.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/mitele.py b/youtube_dl/extractor/mitele.py index 3589c223d..005480f4d 100644 --- a/youtube_dl/extractor/mitele.py +++ b/youtube_dl/extractor/mitele.py @@ -70,7 +70,7 @@ class MiTeleIE(InfoExtractor): self._sort_formats(formats) title = self._search_regex( - r'class="Destacado-text"[^>]*>\s*([^<]+)', webpage, 'title') + r'class="Destacado-text"[^>]*>\s*([^<]+)', webpage, 'title', 'NO_TITLE') video_id = self._search_regex( r'data-media-id\s*=\s*"([^"]+)"', webpage,