[extractor/generic] Add support for tvc embeds
authorSergey M․ <dstftw@gmail.com>
Fri, 12 Jun 2015 10:22:46 +0000 (16:22 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 12 Jun 2015 10:22:46 +0000 (16:22 +0600)
youtube_dl/extractor/generic.py

index 75526384f07bd07f0c21c24455ac7017aef63ba0..c797c4b5244c28ea6b17af14c20edfb96e9cc3ee 100644 (file)
@@ -34,6 +34,7 @@ from .brightcove import BrightcoveIE
 from .nbc import NBCSportsVPlayerIE
 from .ooyala import OoyalaIE
 from .rutv import RUTVIE
+from .tvc import TVCEmbedIE
 from .sportbox import SportBoxEmbedIE
 from .smotri import SmotriIE
 from .condenast import CondeNastIE
@@ -1301,6 +1302,11 @@ class GenericIE(InfoExtractor):
         if rutv_url:
             return self.url_result(rutv_url, 'RUTV')
 
+        # Look for embedded TVC player
+        rutv_url = TVCEmbedIE._extract_url(webpage)
+        if rutv_url:
+            return self.url_result(rutv_url, 'TVCEmbed')
+
         # Look for embedded SportBox player
         sportbox_urls = SportBoxEmbedIE._extract_urls(webpage)
         if sportbox_urls: