]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/rottentomatoes.py
Imported Upstream version 2015.02.06
[youtubedl] / youtube_dl / extractor / rottentomatoes.py
1 from __future__ import unicode_literals
2
3 from .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
8 class RottenTomatoesIE(VideoDetectiveIE):
9 _VALID_URL = r'https?://www\.rottentomatoes\.com/m/[^/]+/trailers/(?P<id>\d+)'
10
11 _TEST = {
12 'url': 'http://www.rottentomatoes.com/m/toy_story_3/trailers/11028566/',
13 'info_dict': {
14 'id': '613340',
15 'ext': 'mp4',
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.',
18 },
19 }