diff options
author | nixxo <nixxo@protonmail.com> | 2021-02-24 22:17:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 22:17:29 +0100 |
commit | 9662e4964b8d1b8d23c79f90d91b9be87d10029f (patch) | |
tree | 3ed933ac9a3cb2090b95cf6155e1c20aea05bc97 /youtube_dl/extractor/vvvvid.py | |
parent | 44603290e5002153f3ebad6230cc73aef42cc2cd (diff) |
[vvvvid] extract series sublists playlist_title (#27601) (#27618)
Diffstat (limited to 'youtube_dl/extractor/vvvvid.py')
-rw-r--r-- | youtube_dl/extractor/vvvvid.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vvvvid.py b/youtube_dl/extractor/vvvvid.py index 778ce8b76..d62404cf3 100644 --- a/youtube_dl/extractor/vvvvid.py +++ b/youtube_dl/extractor/vvvvid.py @@ -247,9 +247,13 @@ class VVVVIDShowIE(VVVVIDIE): 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 @@ -259,12 +263,13 @@ class VVVVIDShowIE(VVVVIDIE): 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) |