]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/tweakers.py
debian/rules: Add commented snippet for conffile removal.
[youtubedl] / youtube_dl / extractor / tweakers.py
1 from __future__ import unicode_literals
2
3 from .common import InfoExtractor
4
5
6 class TweakersIE(InfoExtractor):
7 _VALID_URL = r'https?://tweakers\.net/video/(?P<id>\d+)'
8 _TEST = {
9 'url': 'https://tweakers.net/video/9926/new-nintendo-3ds-xl-op-alle-fronten-beter.html',
10 'md5': '3147e4ddad366f97476a93863e4557c8',
11 'info_dict': {
12 'id': '9926',
13 'ext': 'mp4',
14 'title': 'New Nintendo 3DS XL - Op alle fronten beter',
15 'description': 'md5:f97324cc71e86e11c853f0763820e3ba',
16 'thumbnail': 're:^https?://.*\.jpe?g$',
17 'duration': 386,
18 }
19 }
20
21 def _real_extract(self, url):
22 playlist_id = self._match_id(url)
23 entries = self._extract_xspf_playlist(
24 'https://tweakers.net/video/s1playlist/%s/playlist.xspf' % playlist_id, playlist_id)
25 return self.playlist_result(entries, playlist_id)