]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/rottentomatoes.py
1 from .common
import InfoExtractor
2 from .internetvideoarchive
import InternetVideoArchiveIE
5 class RottenTomatoesIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?rottentomatoes\.com/m/[^/]+/trailers/(?P<id>\d+)'
9 'url': 'http://www.rottentomatoes.com/m/toy_story_3/trailers/11028566/',
13 'title': 'Toy Story 3',
14 'description': 'From the creators of the beloved TOY STORY films, comes a story that will reunite the gang in a whole new way.',
15 'thumbnail': r
're:^https?://.*\.jpg$',
19 def _real_extract(self
, url
):
20 video_id
= self
._match
_id
(url
)
21 webpage
= self
._download
_webpage
(url
, video_id
)
22 iva_id
= self
._search
_regex
(r
'publishedid=(\d+)', webpage
, 'internet video archive id')
25 '_type': 'url_transparent',
26 'url': 'http://video.internetvideoarchive.net/player/6/configuration.ashx?domain=www.videodetective.com&customerid=69249&playerid=641&publishedid=' + iva_id
,
27 'ie_key': InternetVideoArchiveIE
.ie_key(),
29 'title': self
._og
_search
_title
(webpage
),