mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
feat: add Studio#setThumbnail() method (#111)
* feat: add support for protobuf payloads to `Actions#execute()` * chore: compile proto definitions file * feat(wip): add `Studio` class and implement `Studio#setThumbnail()` method * fix: check if parameters are missing
This commit is contained in:
@@ -188,7 +188,7 @@ export default class Parser {
|
||||
status: data.playabilityStatus.status as string,
|
||||
error_screen: Parser.parse(data.playabilityStatus.errorScreen),
|
||||
embeddable: !!data.playabilityStatus.playableInEmbed || false,
|
||||
reason: `${data.reason}` || ''
|
||||
reason: data.playabilityStatus?.reason || ''
|
||||
} : undefined,
|
||||
streaming_data: data.streamingData ? {
|
||||
expires: new Date(Date.now() + parseInt(data.streamingData.expiresInSeconds) * 1000),
|
||||
|
||||
Reference in New Issue
Block a user