- episode_pattern = r'''(?sx)
- <img[^>]+delay="[^"]+/(\d+)/movie\.jpg".+?
- <p[^>]+class=".*?\bepisodeNumber\b.*?">(?:<a[^>]+>)?([^<]+)'''
- entries = [{
- '_type': 'url_transparent',
- 'url': url.replace('detail', 'watch').replace('.html', '.' + movie_id + '.html'),
- 'episode_id': episode_id,
- 'episode_number': int_or_none(episode_id),
- } for movie_id, episode_id in re.findall(episode_pattern, webpage)]
-
- playlist_title = remove_end(
- self._og_search_title(webpage, fatal=False), ' - Anime - DAISUKI')
- playlist_description = clean_html(get_element_by_id('synopsisTxt', webpage))
-
- return self.playlist_result(entries, playlist_id, playlist_title, playlist_description)
+ entries = []
+ for li in re.findall(r'(<li[^>]+?data-product_id="[a-zA-Z0-9]{3}"[^>]+>)', webpage):
+ attr = extract_attributes(li)
+ ad_id = attr.get('data-ad_id')
+ product_id = attr.get('data-product_id')
+ if ad_id and product_id:
+ episode_id = attr.get('data-chapter')
+ entries.append({
+ '_type': 'url_transparent',
+ 'url': 'http://motto.daisuki.net/framewatch/embed/%s/%s/760/428' % (ad_id, product_id),
+ 'episode_id': episode_id,
+ 'episode_number': int_or_none(episode_id),
+ 'ie_key': 'DaisukiMotto',
+ })
+
+ return self.playlist_result(entries, playlist_title='DRAGON BALL SUPER')