1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-10-30 05:46:40 +01:00

[extractor/tubi] Exclude playlists from playlist entries (#4416)

Closes #4409 

Authored by: sqrtNOT
This commit is contained in:
sqrtNOT 2022-07-23 06:10:48 +00:00 committed by GitHub
parent 4f08e58655
commit 2dc4970e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)