mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-14 06:16:08 +08:00
[Roosterteeth] Remove unnecessary calls to str_or_none.
This commit is contained in:
parent
95dd30dfd0
commit
1caa13d417
@ -106,10 +106,10 @@ class RoosterTeethIE(InfoExtractor):
|
||||
data = api_response.get('data')[0]
|
||||
|
||||
attributes = data.get('attributes', {})
|
||||
episode = str_or_none(attributes.get('display_title'))
|
||||
title = str_or_none(attributes.get('title'))
|
||||
description = str_or_none(attributes.get('caption'))
|
||||
series = str_or_none(attributes.get('show_title'))
|
||||
episode = attributes.get('display_title')
|
||||
title = attributes.get('title')
|
||||
description = attributes.get('caption')
|
||||
series = attributes.get('show_title')
|
||||
thumbnail = self.get_thumbnail(data.get('included', {}).get('images'))
|
||||
|
||||
video_response = self._download_json(
|
||||
|
Loading…
Reference in New Issue
Block a user