2015-12-31 20:23:48 +01:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2021-08-29 23:50:58 +02:00
|
|
|
from .mtv import MTVServicesInfoExtractor
|
2015-12-31 20:23:48 +01:00
|
|
|
|
2020-10-27 16:49:42 +01:00
|
|
|
# TODO: Remove - Reason not used anymore - Service moved to youtube
|
|
|
|
|
2015-12-31 20:23:48 +01:00
|
|
|
|
2021-08-29 23:50:58 +02:00
|
|
|
class TVLandIE(MTVServicesInfoExtractor):
|
2015-12-31 20:23:48 +01:00
|
|
|
IE_NAME = 'tvland.com'
|
2016-09-30 17:30:34 +02:00
|
|
|
_VALID_URL = r'https?://(?:www\.)?tvland\.com/(?:video-clips|(?:full-)?episodes)/(?P<id>[^/?#.]+)'
|
2015-12-31 20:52:47 +01:00
|
|
|
_FEED_URL = 'http://www.tvland.com/feeds/mrss/'
|
2015-12-31 20:23:48 +01:00
|
|
|
_TESTS = [{
|
2016-07-26 05:10:41 +02:00
|
|
|
# Geo-restricted. Without a proxy metadata are still there. With a
|
|
|
|
# proxy it redirects to http://m.tvland.com/app/
|
2019-07-03 14:31:47 +02:00
|
|
|
'url': 'https://www.tvland.com/episodes/s04pzf/everybody-loves-raymond-the-dog-season-1-ep-19',
|
2016-07-26 05:10:41 +02:00
|
|
|
'info_dict': {
|
2019-07-03 14:31:47 +02:00
|
|
|
'description': 'md5:84928e7a8ad6649371fbf5da5e1ad75a',
|
|
|
|
'title': 'The Dog',
|
2016-07-26 05:10:41 +02:00
|
|
|
},
|
2019-07-03 14:31:47 +02:00
|
|
|
'playlist_mincount': 5,
|
2021-08-29 23:50:58 +02:00
|
|
|
'skip': '404 Not found',
|
2015-12-31 20:23:48 +01:00
|
|
|
}, {
|
2019-07-03 14:31:47 +02:00
|
|
|
'url': 'https://www.tvland.com/video-clips/4n87f2/younger-a-first-look-at-younger-season-6',
|
2015-12-31 20:23:48 +01:00
|
|
|
'md5': 'e2c6389401cf485df26c79c247b08713',
|
|
|
|
'info_dict': {
|
2019-07-03 14:31:47 +02:00
|
|
|
'id': '891f7d3c-5b5b-4753-b879-b7ba1a601757',
|
2015-12-31 20:23:48 +01:00
|
|
|
'ext': 'mp4',
|
2019-07-03 14:31:47 +02:00
|
|
|
'title': 'Younger|April 30, 2019|6|NO-EPISODE#|A First Look at Younger Season 6',
|
|
|
|
'description': 'md5:595ea74578d3a888ae878dfd1c7d4ab2',
|
|
|
|
'upload_date': '20190430',
|
|
|
|
'timestamp': 1556658000,
|
|
|
|
},
|
|
|
|
'params': {
|
|
|
|
'skip_download': True,
|
2015-12-31 20:23:48 +01:00
|
|
|
},
|
2016-09-30 17:30:34 +02:00
|
|
|
}, {
|
|
|
|
'url': 'http://www.tvland.com/full-episodes/iu0hz6/younger-a-kiss-is-just-a-kiss-season-3-ep-301',
|
|
|
|
'only_matching': True,
|
2015-12-31 20:23:48 +01:00
|
|
|
}]
|