]>
Commit | Line | Data |
---|---|---|
22ce9ad2 | 1 | from .onet import OnetBaseIE |
22ce9ad2 MR |
2 | |
3 | ||
4 | class VODPlIE(OnetBaseIE): | |
6092ccd0 | 5 | _VALID_URL = r'https?://vod\.pl/(?:[^/]+/)+(?P<id>[0-9a-zA-Z]+)' |
22ce9ad2 | 6 | |
6092ccd0 | 7 | _TESTS = [{ |
22ce9ad2 MR |
8 | 'url': 'https://vod.pl/filmy/chlopaki-nie-placza/3ep3jns', |
9 | 'md5': 'a7dc3b2f7faa2421aefb0ecaabf7ec74', | |
10 | 'info_dict': { | |
11 | 'id': '3ep3jns', | |
12 | 'ext': 'mp4', | |
13 | 'title': 'Chłopaki nie płaczą', | |
6092ccd0 | 14 | 'description': 'md5:f5f03b84712e55f5ac9f0a3f94445224', |
22ce9ad2 MR |
15 | 'timestamp': 1463415154, |
16 | 'duration': 5765, | |
17 | 'upload_date': '20160516', | |
18 | }, | |
6092ccd0 S |
19 | }, { |
20 | 'url': 'https://vod.pl/seriale/belfer-na-planie-praca-kamery-online/2c10heh', | |
21 | 'only_matching': True, | |
22 | }] | |
22ce9ad2 MR |
23 | |
24 | def _real_extract(self, url): | |
25 | video_id = self._match_id(url) | |
26 | webpage = self._download_webpage(url, video_id) | |
6092ccd0 S |
27 | info_dict = self._extract_from_id(self._search_mvp_id(webpage), webpage) |
28 | info_dict['id'] = video_id | |
22ce9ad2 | 29 | return info_dict |