Add playlist attachment type (#378)

* Add playlist attachment type

* add viewCountText to video object
This commit is contained in:
ChunkyProgrammer 2023-05-21 15:56:46 -04:00 committed by GitHub
parent 01ec20f4d6
commit cf0b6310d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -140,7 +140,7 @@ Please refer to the [Community Post Attachment types](#community-post-attachment
{
"authorId": String,
"comments": {
"attachment": ImageAttachment | MultiImageAttachment | VideoAttachment | PollAttachment
"attachment": ImageAttachment | MultiImageAttachment | VideoAttachment | PollAttachment | PlaylistAttachment
"author": String,
"authorIsChannelOwner": Boolean
"authorId": String,
@ -161,6 +161,9 @@ Please refer to the [Community Post Attachment types](#community-post-attachment
__VideoAttachment__
See [VideoObject](./common_types.md#videoobject) common type
__PlaylistAttachment__
See [PlaylistObject](./common_types.md#playlistobject) common type
__ImageAttachment__
```javascript

View File

@ -46,6 +46,7 @@
"descriptionHtml": String,
"viewCount": Number, // Integer
"viewCountText": String,
"lengthSeconds": Number, // Integer
"published": Number, // Unix timestamp
@ -85,7 +86,7 @@
```
### PlaylistOject
### PlaylistObject
```javascript
{