From 1c5d9b91f5391c435b1e0c7695a6d85ad825ed97 Mon Sep 17 00:00:00 2001 From: kclauhk <78251477+kclauhk@users.noreply.github.com> Date: Sun, 18 Aug 2024 00:21:17 +0800 Subject: [PATCH] Update piramidetv.py --- yt_dlp/extractor/piramidetv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/extractor/piramidetv.py b/yt_dlp/extractor/piramidetv.py index 114aee39a..d94379282 100644 --- a/yt_dlp/extractor/piramidetv.py +++ b/yt_dlp/extractor/piramidetv.py @@ -60,8 +60,7 @@ class PiramideTVIE(InfoExtractor): 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]