mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-12 05:44:43 +00:00
Return more entry metadata in flat playlist
This commit is contained in:
parent
a598f62e18
commit
1be3d718a8
@ -88,9 +88,16 @@ class PiramideTVChannelIE(InfoExtractor):
|
|||||||
def _entries(self, channel_name):
|
def _entries(self, channel_name):
|
||||||
videos = self._download_json(
|
videos = self._download_json(
|
||||||
f'https://hermes.piramide.tv/channel/list/{channel_name}/date/100000', channel_name)
|
f'https://hermes.piramide.tv/channel/list/{channel_name}/date/100000', channel_name)
|
||||||
for video_id in traverse_obj(videos, ('videos', ..., 'id', {str})):
|
for video in videos.get('videos', []):
|
||||||
|
if video_id := video.get('id'):
|
||||||
yield self.url_result(smuggle_url(
|
yield self.url_result(smuggle_url(
|
||||||
f'https://piramide.tv/video/{video_id}', {'force_noplaylist': True}))
|
f'https://piramide.tv/video/{video_id}', {'force_noplaylist': True}),
|
||||||
|
**traverse_obj(video, {
|
||||||
|
'id': ('id', {str}),
|
||||||
|
'title': ('title', {str}),
|
||||||
|
'description': ('description', {str}),
|
||||||
|
'webpage_url': ('id', {str}, {lambda v: f'https://piramide.tv/video/{v}'}),
|
||||||
|
}))
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
channel_name = self._match_id(url)
|
channel_name = self._match_id(url)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user