~facundo/encuentro/trunk

« back to all changes in this revision

Viewing changes to external/youtube-dl/youtube_dl/extractor/rottentomatoes.py

  • Committer: Facundo Batista
  • Date: 2015-12-27 11:27:15 UTC
  • mto: This revision was merged to the branch mainline in revision 274.
  • Revision ID: facundo@taniquetil.com.ar-20151227112715-ztuasdhqm26hycug
Able to download TEDx.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
    }