[twitch:clips] Fix title extraction
authorJ.D. Purcell <jdpurcell@gmail.com>
Mon, 23 Oct 2017 16:12:50 +0000 (12:12 -0400)
committerSergey M <dstftw@gmail.com>
Mon, 23 Oct 2017 16:12:50 +0000 (23:12 +0700)
youtube_dl/extractor/twitch.py

index c926c99a999bb88388c77d859e54c8973417b9db..fefcd28078f6c69058366fbb7b8f9e616508fbb6 100644 (file)
@@ -609,7 +609,7 @@ class TwitchClipsIE(InfoExtractor):
                 r'(?s)clipInfo\s*=\s*({.+?});', webpage, 'clip info'),
             video_id, transform_source=js_to_json)
 
-        title = clip.get('channel_title') or self._og_search_title(webpage)
+        title = clip.get('title') or clip.get('channel_title') or self._og_search_title(webpage)
 
         formats = [{
             'url': option['source'],