From: Luca Steeb Date: Mon, 5 Jun 2017 18:17:43 +0000 (+0200) Subject: [streamango] Make title optional X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=eb703e538035b0ebdc076be0ba982aac97d9ef08;p=youtube-dl.git [streamango] Make title optional --- diff --git a/youtube_dl/extractor/streamango.py b/youtube_dl/extractor/streamango.py index aa4fad162..cf03d5b09 100644 --- a/youtube_dl/extractor/streamango.py +++ b/youtube_dl/extractor/streamango.py @@ -21,6 +21,13 @@ class StreamangoIE(InfoExtractor): 'ext': 'mp4', 'title': '20170315_150006.mp4', } + }, { + 'url': 'https://streamango.com/embed/foqebrpftarclpob/asdf_asd_2_mp4', + 'info_dict': { + 'id': 'foqebrpftarclpob', + 'ext': 'mp4', + 'title': 'foqebrpftarclpob', + } }, { 'url': 'https://streamango.com/embed/clapasobsptpkdfe/20170315_150006_mp4', 'only_matching': True, @@ -31,7 +38,7 @@ class StreamangoIE(InfoExtractor): webpage = self._download_webpage(url, video_id) - title = self._og_search_title(webpage) + title = self._og_search_title(webpage, default=video_id) formats = [] for format_ in re.findall(r'({[^}]*\bsrc\s*:\s*[^}]*})', webpage):