[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 @@
js_to_json, js_to_json,
sanitized_Request, sanitized_Request,
urlencode_postdata, 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'] show_webpage, 'data'), show_name, transform_source=js_to_json)['video']
for episode_id in show_json['fullContentById'].keys(): for episode_id in show_json['fullContentById'].keys():
if traverse_obj(show_json, ('byId', episode_id, 'type')) == 's':
continue
yield self.url_result( yield self.url_result(
'tubitv:%s' % episode_id, 'tubitv:%s' % episode_id,
ie=TubiTvIE.ie_key(), video_id=episode_id) ie=TubiTvIE.ie_key(), video_id=episode_id)