Browse Source

[twitch:clips] Fix title extraction

J.D. Purcell 8 years ago
parent
commit
cdd1ce92c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/twitch.py

+ 1 - 1
youtube_dl/extractor/twitch.py

@@ -609,7 +609,7 @@ class TwitchClipsIE(InfoExtractor):
                 r'(?s)clipInfo\s*=\s*({.+?});', webpage, 'clip info'),
                 r'(?s)clipInfo\s*=\s*({.+?});', webpage, 'clip info'),
             video_id, transform_source=js_to_json)
             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 = [{
         formats = [{
             'url': option['source'],
             'url': option['source'],