]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/tvland.py
b73279dec8f433163e4d5d272e25e794c2fa74a8
[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|episodes)/(?P<id>[^/?#.]+)'
10 _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
11 _TESTS = [{
12 'url': 'http://www.tvland.com/episodes/hqhps2/everybody-loves-raymond-the-invasion-ep-048',
13 'playlist': [
14 {
15 'md5': '227e9723b9669c05bf51098b10287aa7',
16 'info_dict': {
17 'id': 'bcbd3a83-3aca-4dca-809b-f78a87dcccdd',
18 'ext': 'mp4',
19 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 1 of 5',
20 }
21 },
22 {
23 'md5': '9fa2b764ec0e8194fb3ebb01a83df88b',
24 'info_dict': {
25 'id': 'f4279548-6e13-40dd-92e8-860d27289197',
26 'ext': 'mp4',
27 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 2 of 5',
28 }
29 },
30 {
31 'md5': 'fde4c3bccd7cc7e3576b338734153cec',
32 'info_dict': {
33 'id': '664e4a38-53ef-4115-9bc9-d0f789ec6334',
34 'ext': 'mp4',
35 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 3 of 5',
36 }
37 },
38 {
39 'md5': '247f6780cda6891f2e49b8ae2b10e017',
40 'info_dict': {
41 'id': '9146ecf5-b15a-4d78-879c-6679b77f4960',
42 'ext': 'mp4',
43 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 4 of 5',
44 }
45 },
46 {
47 'md5': 'fd269f33256e47bad5eb6c40de089ff6',
48 'info_dict': {
49 'id': '04334a2e-9a47-4214-a8c2-ae5792e2fab7',
50 'ext': 'mp4',
51 'title': 'Everybody Loves Raymond|Everybody Loves Raymond 048 HD, Part 5 of 5',
52 }
53 }
54 ],
55 }, {
56 'url': 'http://www.tvland.com/video-clips/zea2ev/younger-younger--hilary-duff---little-lies',
57 'md5': 'e2c6389401cf485df26c79c247b08713',
58 'info_dict': {
59 'id': 'b8697515-4bbe-4e01-83d5-fa705ce5fa88',
60 'ext': 'mp4',
61 'title': 'Younger|Younger: Hilary Duff - Little Lies',
62 'description': 'md5:7d192f56ca8d958645c83f0de8ef0269'
63 },
64 }]