Skip to content

Commit

Permalink
[vvvvid] extract series sublists playlist_title (#27601) (#27618)
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxo authored Feb 24, 2021
1 parent 4460329 commit 9662e49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion youtube_dl/extractor/vvvvid.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,13 @@ def _real_extract(self, url):
show_info = self._download_info(
show_id, 'info/', show_title, fatal=False)

if not show_title:
base_url += "/title"

entries = []
for season in (seasons or []):
episodes = season.get('episodes') or []
playlist_title = season.get('name') or show_info.get('title')
for episode in episodes:
if episode.get('playable') is False:
continue
Expand All @@ -259,12 +263,13 @@ def _real_extract(self, url):
continue
info = self._extract_common_video_info(episode)
info.update({
'_type': 'url',
'_type': 'url_transparent',
'ie_key': VVVVIDIE.ie_key(),
'url': '/'.join([base_url, season_id, video_id]),
'title': episode.get('title'),
'description': episode.get('description'),
'season_id': season_id,
'playlist_title': playlist_title,
})
entries.append(info)

Expand Down

0 comments on commit 9662e49

Please sign in to comment.