Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
seproDev and bashonly authored Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0d58f2c commit 34faf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/piramidetv.py
Original file line number Diff line number Diff line change
@@ -57,11 +57,11 @@ def _extract_video(self, video_id):
def _entries(self, video_id):
visited = set()
while True:
visited.add(video_id)
next_video, info = self._extract_video(video_id)
yield info
if not next_video or next_video in visited:
break
visited.add(next_video)
video_id = next_video

def _real_extract(self, url):
@@ -87,7 +87,7 @@ def _entries(self, channel_name):
f'https://hermes.piramide.tv/channel/list/{channel_name}/date/100000', channel_name)
for video in traverse_obj(videos, ('videos', lambda _, v: v['id'])):
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}),

0 comments on commit 34faf85

Please sign in to comment.