]> jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/tvland.py
[cleanup, docs] Misc cleanup
[yt-dlp.git] / yt_dlp / extractor / tvland.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .mtv import MTVServicesInfoExtractor
5
6 # TODO: Remove - Reason not used anymore - Service moved to youtube
7
8
9 class TVLandIE(MTVServicesInfoExtractor):
10 IE_NAME = 'tvland.com'
11 _VALID_URL = r'https?://(?:www\.)?tvland\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
12 _FEED_URL = 'http://www.tvland.com/feeds/mrss/'
13 _TESTS = [{
14 # Geo-restricted. Without a proxy metadata are still there. With a
15 # proxy it redirects to http://m.tvland.com/app/
16 'url': 'https://www.tvland.com/episodes/s04pzf/everybody-loves-raymond-the-dog-season-1-ep-19',
17 'info_dict': {
18 'description': 'md5:84928e7a8ad6649371fbf5da5e1ad75a',
19 'title': 'The Dog',
20 },
21 'playlist_mincount': 5,
22 'skip': '404 Not found',
23 }, {
24 'url': 'https://www.tvland.com/video-clips/4n87f2/younger-a-first-look-at-younger-season-6',
25 'md5': 'e2c6389401cf485df26c79c247b08713',
26 'info_dict': {
27 'id': '891f7d3c-5b5b-4753-b879-b7ba1a601757',
28 'ext': 'mp4',
29 'title': 'Younger|April 30, 2019|6|NO-EPISODE#|A First Look at Younger Season 6',
30 'description': 'md5:595ea74578d3a888ae878dfd1c7d4ab2',
31 'upload_date': '20190430',
32 'timestamp': 1556658000,
33 },
34 'params': {
35 'skip_download': True,
36 },
37 }, {
38 'url': 'http://www.tvland.com/full-episodes/iu0hz6/younger-a-kiss-is-just-a-kiss-season-3-ep-301',
39 'only_matching': True,
40 }]