Explorar el Código

[vube] Make video description optional as it may be missing

dst hace 11 años
padre
commit
f46359121f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      youtube_dl/extractor/vube.py

+ 1 - 1
youtube_dl/extractor/vube.py

@@ -45,7 +45,7 @@ class VubeIE(InfoExtractor):
         self._sort_formats(formats)
 
         title = video['title']
-        description = video['description']
+        description = video.get('description')
         thumbnail = video['thumbnail_src']
         if thumbnail.startswith('//'):
             thumbnail = 'http:' + thumbnail