Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vvvvid] fix season title extraction (#27601) #27618

Merged
merged 3 commits into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
nixxo marked this conversation as resolved.
Show resolved Hide resolved
})
entries.append(info)

Expand Down