diff --git a/yt_dlp/extractor/piramidetv.py b/yt_dlp/extractor/piramidetv.py index 114aee39a4..d94379282e 100644 --- a/yt_dlp/extractor/piramidetv.py +++ b/yt_dlp/extractor/piramidetv.py @@ -60,8 +60,7 @@ def extract_video(video_id, fatal=False): video, next_video = extract_video(video_id, (not entries)) if video.get('formats'): entries.append(video) - if next_video != video_id: - video_id = next_video + video_id = next_video if next_video != video_id else None if len(entries) == 1: return entries[0]