- splitted_url = re.split('.html|/', url)
- del splitted_url[-1] # To remove extra '/' at the end
- video_id = splitted_url[4]
- title = splitted_url[5].title() # Retrieve title for URL and capitalize
- splitted_url[3] = splitted_url[3] + '/player' # Add /player to get the player page
- player_url = '/'.join(splitted_url) + '.html'
- player_page = self._download_webpage(player_url, video_id)
-
- return {
- 'id': video_id,
- 'ext': 'mp4',
- 'title': title,
- 'url': re.findall('http.*mp4', player_page)[0],
- }
+ playlist_id = self._match_id(url)
+ entries = self._extract_xspf_playlist(
+ 'https://tweakers.net/video/s1playlist/%s/playlist.xspf' % playlist_id, playlist_id)
+ return self.playlist_result(entries, playlist_id)