]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/cbs.py
1ceb9d8d9df6c0268e33de5e34c01a245e134e05
1 from __future__
import unicode_literals
3 from . common
import InfoExtractor
6 class CBSIE ( InfoExtractor
):
7 _VALID_URL
= r
'https?://(?:www\.)?cbs\.com/shows/[^/]+/(?:video|artist)/(?P<id>[^/]+)/.*'
10 'url' : 'http://www.cbs.com/shows/garth-brooks/video/_u7W953k6la293J7EPTd9oHkSPs6Xn6_/connect-chat-feat-garth-brooks/' ,
14 'title' : 'Connect Chat feat. Garth Brooks' ,
15 'description' : 'Connect with country music singer Garth Brooks, as he chats with fans on Wednesday November 27, 2013. Be sure to tune in to Garth Brooks: Live from Las Vegas, Friday November 29, at 9/8c on CBS!' ,
20 'skip_download' : True ,
22 '_skip' : 'Blocked outside the US' ,
24 'url' : 'http://www.cbs.com/shows/liveonletterman/artist/221752/st-vincent/' ,
28 'title' : 'Live on Letterman - St. Vincent' ,
29 'description' : 'Live On Letterman: St. Vincent in concert from New York \' s Ed Sullivan Theater on Tuesday, July 16, 2014.' ,
34 'skip_download' : True ,
36 '_skip' : 'Blocked outside the US' ,
39 def _real_extract ( self
, url
):
40 video_id
= self
._ match
_ id
( url
)
41 webpage
= self
._ download
_ webpage
( url
, video_id
)
42 real_id
= self
._ search
_ regex
(
43 r
"video\.settings\.pid\s*=\s*'([^']+)';" ,
44 webpage
, 'real video ID' )
45 return self
. url_result ( 'theplatform: %s ' % real_id
)