]> jfr.im git - yt-dlp.git/commitdiff
[extractor/tubi] Exclude playlists from playlist entries (#4416)
authorsqrtNOT <redacted>
Sat, 23 Jul 2022 06:10:48 +0000 (06:10 +0000)
committerGitHub <redacted>
Sat, 23 Jul 2022 06:10:48 +0000 (11:40 +0530)
Closes #4409

Authored by: sqrtNOT

yt_dlp/extractor/tubitv.py

index 9c8e1ac879de18ec8d16c22d52e25d28623e01a0..ea38162ae321a78e2d6c9ac40894a55afe5fe73f 100644 (file)
@@ -7,6 +7,7 @@
     js_to_json,
     sanitized_Request,
     urlencode_postdata,
+    traverse_obj,
 )
 
 
@@ -135,6 +136,8 @@ def _entries(self, show_url, show_name):
             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)