]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Adding subtitles
authorPishPosh.McGee <pishposh.mcgee@gmail.com>
Thu, 26 Feb 2015 09:59:35 +0000 (03:59 -0600)
committerPishPosh.McGee <pishposh.mcgee@gmail.com>
Thu, 26 Feb 2015 09:59:35 +0000 (03:59 -0600)
youtube_dl/extractor/comedycentral.py

index b2453898199ed72da7df13fa90714572fad22133..e5edcc84b69ef7bdffdbb7ed158c901c560a7575 100644 (file)
@@ -250,6 +250,8 @@ class ComedyCentralShowsIE(MTVServicesInfoExtractor):
                 })
                 self._sort_formats(formats)
 
+            subtitles = self._extract_subtitles(cdoc, guid)
+
             virtual_id = show_name + ' ' + epTitle + ' part ' + compat_str(part_num + 1)
             entries.append({
                 'id': guid,
@@ -260,6 +262,7 @@ class ComedyCentralShowsIE(MTVServicesInfoExtractor):
                 'duration': duration,
                 'thumbnail': thumbnail,
                 'description': description,
+                'subtitles': subtitles,
             })
 
         return {