[twitch] Allow untitled videos (Closes #6585)
authorSergey M․ <dstftw@gmail.com>
Mon, 17 Aug 2015 14:16:43 +0000 (20:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 17 Aug 2015 14:16:43 +0000 (20:16 +0600)
youtube_dl/extractor/twitch.py

index a2b6a35aa3c89c9ff7c40c5c3385a285abc9a0e5..0521257e5a1f228fae1169969544125d936bbf34 100644 (file)
@@ -132,7 +132,7 @@ class TwitchItemBaseIE(TwitchBaseIE):
     def _extract_info(self, info):
         return {
             'id': info['_id'],
-            'title': info['title'],
+            'title': info.get('title') or 'Untitled Broadcast',
             'description': info['description'],
             'duration': info['length'],
             'thumbnail': info['preview'],