aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/streamango.py
diff options
context:
space:
mode:
authorLuca Steeb <contact@luca-steeb.com>2017-06-05 20:17:43 +0200
committerSergey M․ <dstftw@gmail.com>2017-06-07 21:53:33 +0700
commiteb703e538035b0ebdc076be0ba982aac97d9ef08 (patch)
tree38559e477d2a432a8426a260a99b5253c60035c6 /youtube_dl/extractor/streamango.py
parent0a3924e74622175dc9798e01e60d6bd3b3b36018 (diff)
downloadyoutube-dl-eb703e538035b0ebdc076be0ba982aac97d9ef08.zip
youtube-dl-eb703e538035b0ebdc076be0ba982aac97d9ef08.tar.gz
youtube-dl-eb703e538035b0ebdc076be0ba982aac97d9ef08.tar.bz2
[streamango] Make title optional
Diffstat (limited to 'youtube_dl/extractor/streamango.py')
-rw-r--r--youtube_dl/extractor/streamango.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/streamango.py b/youtube_dl/extractor/streamango.py
index aa4fad1..cf03d5b 100644
--- a/youtube_dl/extractor/streamango.py
+++ b/youtube_dl/extractor/streamango.py
@@ -22,6 +22,13 @@ class StreamangoIE(InfoExtractor):
'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):