1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/generic] Add support for tvc embeds

This commit is contained in:
Sergey M․ 2015-06-12 16:22:46 +06:00
parent 29902c8ec0
commit 494f20cbdc

View 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: