From 2dc4970e08c1f40332b9ccd90ccbc5340b86f7bc Mon Sep 17 00:00:00 2001 From: sqrtNOT <77981959+sqrtNOT@users.noreply.github.com> Date: Sat, 23 Jul 2022 06:10:48 +0000 Subject: [PATCH] [extractor/tubi] Exclude playlists from playlist entries (#4416) Closes #4409 Authored by: sqrtNOT --- yt_dlp/extractor/tubitv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/tubitv.py b/yt_dlp/extractor/tubitv.py index 9c8e1ac879..ea38162ae3 100644 --- a/yt_dlp/extractor/tubitv.py +++ b/yt_dlp/extractor/tubitv.py @@ -7,6 +7,7 @@ from ..utils import ( js_to_json, sanitized_Request, urlencode_postdata, + traverse_obj, ) @@ -135,6 +136,8 @@ class TubiTvShowIE(InfoExtractor): show_webpage, 'data'), show_name, transform_source=js_to_json)['video'] for episode_id in show_json['fullContentById'].keys(): + if traverse_obj(show_json, ('byId', episode_id, 'type')) == 's': + continue yield self.url_result( 'tubitv:%s' % episode_id, ie=TubiTvIE.ie_key(), video_id=episode_id)