]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[viki] Fix typo
authorSergey M․ <dstftw@gmail.com>
Wed, 20 May 2015 20:38:43 +0000 (02:38 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 20 May 2015 20:38:43 +0000 (02:38 +0600)
youtube_dl/extractor/viki.py

index 3acb481f925c3f767df6e01045ee92d964893dd5..0ec8ef0ef9bec36e11bec0e3274c7d3b921575d8 100644 (file)
@@ -157,7 +157,7 @@ class VikiIE(VikiBaseIE):
             title = 'Episode %d' % video.get('number') if video.get('type') == 'episode' else video.get('id') or video_id
             container_titles = video.get('container', {}).get('titles')
             if container_titles:
-                container_title = container_titles.get('en') or container_titles[titles.keys()[0]]
+                container_title = container_titles.get('en') or container_titles[container_titles.keys()[0]]
                 title = '%s - %s' % (container_title, title)
 
         descriptions = video.get('descriptions')