Update piramidetv.py

This commit is contained in:
kclauhk 2024-08-18 00:21:17 +08:00
parent 15d91f99ca
commit 1c5d9b91f5
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ class PiramideTVIE(InfoExtractor):
video, next_video = extract_video(video_id, (not entries)) video, next_video = extract_video(video_id, (not entries))
if video.get('formats'): if video.get('formats'):
entries.append(video) entries.append(video)
if next_video != video_id: video_id = next_video if next_video != video_id else None
video_id = next_video
if len(entries) == 1: if len(entries) == 1:
return entries[0] return entries[0]