[vvvvid] extract series sublists playlist_title (#27601) (#27618)
authornixxo <nixxo@protonmail.com>
Wed, 24 Feb 2021 21:17:29 +0000 (22:17 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Feb 2021 21:17:29 +0000 (22:17 +0100)
youtube_dl/extractor/vvvvid.py

index 778ce8b765ce30db1ed7747f3af9a41491ff4e8e..d62404cf32210e6d461fd43383c7e58b68e0cd01 100644 (file)
@@ -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)