| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  | # coding: utf-8 | 
					
						
							|  |  |  | from __future__ import unicode_literals | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 20:52:47 +01:00
										 |  |  | from .mtv import MTVServicesInfoExtractor | 
					
						
							| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 20:52:47 +01:00
										 |  |  | class TVLandIE(MTVServicesInfoExtractor): | 
					
						
							| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  |     IE_NAME = 'tvland.com' | 
					
						
							| 
									
										
										
										
											2016-09-30 22:30:34 +07: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 11:10:41 +08:00
										 |  |  |         # Geo-restricted. Without a proxy metadata are still there. With a | 
					
						
							|  |  |  |         # proxy it redirects to http://m.tvland.com/app/ | 
					
						
							| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  |         'url': 'http://www.tvland.com/episodes/hqhps2/everybody-loves-raymond-the-invasion-ep-048', | 
					
						
							| 
									
										
										
										
											2016-07-26 11:10:41 +08:00
										 |  |  |         'info_dict': { | 
					
						
							|  |  |  |             'description': 'md5:80973e81b916a324e05c14a3fb506d29', | 
					
						
							|  |  |  |             'title': 'The Invasion', | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         'playlist': [], | 
					
						
							| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  |     }, { | 
					
						
							|  |  |  |         'url': 'http://www.tvland.com/video-clips/zea2ev/younger-younger--hilary-duff---little-lies', | 
					
						
							|  |  |  |         'md5': 'e2c6389401cf485df26c79c247b08713', | 
					
						
							|  |  |  |         'info_dict': { | 
					
						
							|  |  |  |             'id': 'b8697515-4bbe-4e01-83d5-fa705ce5fa88', | 
					
						
							|  |  |  |             'ext': 'mp4', | 
					
						
							| 
									
										
										
										
											2016-07-26 11:10:41 +08:00
										 |  |  |             'title': 'Younger|December 28, 2015|2|NO-EPISODE#|Younger: Hilary Duff - Little Lies', | 
					
						
							|  |  |  |             'description': 'md5:7d192f56ca8d958645c83f0de8ef0269', | 
					
						
							|  |  |  |             'upload_date': '20151228', | 
					
						
							|  |  |  |             'timestamp': 1451289600, | 
					
						
							| 
									
										
										
										
											2015-12-31 20:23:48 +01:00
										 |  |  |         }, | 
					
						
							| 
									
										
										
										
											2016-09-30 22:30:34 +07: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
										 |  |  |     }] |