aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2015-03-31 20:00:47 +0600
committerSergey M. <dstftw@gmail.com>2015-03-31 20:00:47 +0600
commited06e9949bd121cdcd5d66e14b615abb2dbbd52e (patch)
treed1a3f9356baa4f41dcd2a5f078b902c1d16ddaf8 /youtube_dl/extractor/generic.py
parentedd7344820303e550c9daae1ef591be8068ac47e (diff)
parente15307a612ea588b504f1f03ba0201612df66b35 (diff)
Merge pull request #5328 from yan12125/fix_5226
[Yahoo/NBCSports] Fix 5226 and add support for NBC sports
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 042d23a13..9ddf36f6b 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -29,6 +29,7 @@ from ..utils import (
xpath_text,
)
from .brightcove import BrightcoveIE
+from .nbc import NBCSportsVPlayerIE
from .ooyala import OoyalaIE
from .rutv import RUTVIE
from .smotri import SmotriIE
@@ -639,6 +640,15 @@ class GenericIE(InfoExtractor):
'upload_date': '20150228',
'title': 'pdv_maddow_netcast_m4v-02-27-2015-201624',
}
+ },
+ # NBC Sports vplayer embeds
+ {
+ 'url': 'http://bbs.clutchfans.net/showthread.php?t=244180',
+ 'info_dict': {
+ 'id': '_hqLjQ95yx8Z',
+ 'ext': 'flv'
+ },
+ 'skip': 'This content expired on 9/17/14 12:23 PM',
}
]
@@ -1252,6 +1262,11 @@ class GenericIE(InfoExtractor):
if mobj is not None:
return self.url_result('5min:%s' % mobj.group('id'), 'FiveMin')
+ # Look for NBC Sports VPlayer embeds
+ nbc_sports_url = NBCSportsVPlayerIE._extract_url(webpage)
+ if nbc_sports_url:
+ return self.url_result(nbc_sports_url, 'NBCSportsVPlayer')
+
def check_video(vurl):
if YoutubeIE.suitable(vurl):
return True