Skip to content

Commit 9662e49

Browse files
authored
[vvvvid] extract series sublists playlist_title (ytdl-org#27601) (ytdl-org#27618)
1 parent 4460329 commit 9662e49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

youtube_dl/extractor/vvvvid.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,13 @@ def _real_extract(self, url):
247247
show_info = self._download_info(
248248
show_id, 'info/', show_title, fatal=False)
249249

250+
if not show_title:
251+
base_url += "/title"
252+
250253
entries = []
251254
for season in (seasons or []):
252255
episodes = season.get('episodes') or []
256+
playlist_title = season.get('name') or show_info.get('title')
253257
for episode in episodes:
254258
if episode.get('playable') is False:
255259
continue
@@ -259,12 +263,13 @@ def _real_extract(self, url):
259263
continue
260264
info = self._extract_common_video_info(episode)
261265
info.update({
262-
'_type': 'url',
266+
'_type': 'url_transparent',
263267
'ie_key': VVVVIDIE.ie_key(),
264268
'url': '/'.join([base_url, season_id, video_id]),
265269
'title': episode.get('title'),
266270
'description': episode.get('description'),
267271
'season_id': season_id,
272+
'playlist_title': playlist_title,
268273
})
269274
entries.append(info)
270275

0 commit comments

Comments
 (0)