]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/tvland.py
debian/patches/remove-autoupdate-mechanism.patch: Remove fewer things to avoid future...
[youtubedl] / youtube_dl / extractor / tvland.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .mtv import MTVServicesInfoExtractor
5
6
7 class TVLandIE(MTVServicesInfoExtractor):
8 IE_NAME = 'tvland.com'
9 _VALID_URL = r'https?://(?:www\.)?tvland\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
10 _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
11 _TESTS = [{
12 # Geo-restricted. Without a proxy metadata are still there. With a
13 # proxy it redirects to http://m.tvland.com/app/
14 'url': 'http://www.tvland.com/episodes/hqhps2/everybody-loves-raymond-the-invasion-ep-048',
15 'info_dict': {
16 'description': 'md5:80973e81b916a324e05c14a3fb506d29',
17 'title': 'The Invasion',
18 },
19 'playlist': [],
20 }, {
21 'url': 'http://www.tvland.com/video-clips/zea2ev/younger-younger--hilary-duff---little-lies',
22 'md5': 'e2c6389401cf485df26c79c247b08713',
23 'info_dict': {
24 'id': 'b8697515-4bbe-4e01-83d5-fa705ce5fa88',
25 'ext': 'mp4',
26 'title': 'Younger|December 28, 2015|2|NO-EPISODE#|Younger: Hilary Duff - Little Lies',
27 'description': 'md5:7d192f56ca8d958645c83f0de8ef0269',
28 'upload_date': '20151228',
29 'timestamp': 1451289600,
30 },
31 }, {
32 'url': 'http://www.tvland.com/full-episodes/iu0hz6/younger-a-kiss-is-just-a-kiss-season-3-ep-301',
33 'only_matching': True,
34 }]