1 export class VideoAttributes {
3 constructor (readonly mode: 'get' | 'list') {
7 getChannelAttributes () {
15 if (this.mode === 'get') {
16 attributeKeys = attributeKeys.concat([
26 getAccountAttributes () {
27 let attributeKeys = [ 'id', 'name', 'actorId' ]
29 if (this.mode === 'get') {
30 attributeKeys = attributeKeys.concat([
40 getThumbnailAttributes () {
41 let attributeKeys = [ 'id', 'type', 'filename' ]
43 if (this.mode === 'get') {
44 attributeKeys = attributeKeys.concat([
48 'automaticallyGenerated',
59 getFileAttributes () {
74 'videoStreamingPlaylistId',
79 getStreamingPlaylistAttributes () {
80 let playlistKeys = [ 'id', 'playlistUrl', 'type' ]
82 if (this.mode === 'get') {
83 playlistKeys = playlistKeys.concat([
84 'p2pMediaLoaderInfohashes',
85 'p2pMediaLoaderPeerVersion',
96 getUserHistoryAttributes () {
97 return [ 'id', 'currentTime' ]
100 getPlaylistAttributes () {
112 getTagAttributes () {
113 return [ 'id', 'name' ]
116 getVideoTagAttributes () {
117 return [ 'videoId', 'tagId', 'createdAt', 'updatedAt' ]
120 getBlacklistedAttributes () {
121 return [ 'id', 'reason', 'unfederated' ]
124 getScheduleUpdateAttributes () {
135 getLiveAttributes () {
147 getTrackerAttributes () {
148 return [ 'id', 'url' ]
151 getVideoTrackerAttributes () {
160 getRedundancyAttributes () {
161 return [ 'id', 'fileUrl' ]
164 getActorAttributes () {
165 let attributeKeys = [
173 if (this.mode === 'get') {
174 attributeKeys = attributeKeys.concat([
192 getAvatarAttributes () {
193 let attributeKeys = [
202 if (this.mode === 'get') {
203 attributeKeys = attributeKeys.concat([
213 getServerAttributes () {
214 return [ 'id', 'host' ]
217 getVideoAttributes () {
241 'originallyPublishedAt',