mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-19 07:52:51 +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]
|
data = api_response.get('data')[0]
|
||||||
|
|
||||||
attributes = data.get('attributes', {})
|
attributes = data.get('attributes', {})
|
||||||
episode = str_or_none(attributes.get('display_title'))
|
episode = attributes.get('display_title')
|
||||||
title = str_or_none(attributes.get('title'))
|
title = attributes.get('title')
|
||||||
description = str_or_none(attributes.get('caption'))
|
description = attributes.get('caption')
|
||||||
series = str_or_none(attributes.get('show_title'))
|
series = attributes.get('show_title')
|
||||||
thumbnail = self.get_thumbnail(data.get('included', {}).get('images'))
|
thumbnail = self.get_thumbnail(data.get('included', {}).get('images'))
|
||||||
|
|
||||||
video_response = self._download_json(
|
video_response = self._download_json(
|
||||||
|
Loading…
Reference in New Issue
Block a user