]> jfr.im git - yt-dlp.git/blame - youtube_dl/extractor/rottentomatoes.py
Merge pull request #8061 from dstftw/introduce-chapter-and-series-fields
[yt-dlp.git] / youtube_dl / extractor / rottentomatoes.py
CommitLineData
924f47f7
PH
1from __future__ import unicode_literals
2
4b7b839f
JMF
3from .videodetective import VideoDetectiveIE
4
5
6# It just uses the same method as videodetective.com,
7# the internetvideoarchive.com is extracted from the og:video property
8class RottenTomatoesIE(VideoDetectiveIE):
9 _VALID_URL = r'https?://www\.rottentomatoes\.com/m/[^/]+/trailers/(?P<id>\d+)'
10
11 _TEST = {
924f47f7 12 'url': 'http://www.rottentomatoes.com/m/toy_story_3/trailers/11028566/',
924f47f7 13 'info_dict': {
96aded8d
PH
14 'id': '613340',
15 'ext': 'mp4',
924f47f7
PH
16 'title': 'TOY STORY 3',
17 'description': 'From the creators of the beloved TOY STORY films, comes a story that will reunite the gang in a whole new way.',
4b7b839f
JMF
18 },
19 }