3
1

media.org 7.0 KB

report

console.log(`videos`, videos) //const curationIds = props.curations.map((c) => c.videoId).join(' ') const ids = getIds() const head = `Entity ID | Class/ID | Owner [memberId/Handle] | Title | Curator Status | Reference\n– | – | – | – | – | –\n` let batch: string[] = [head] let b = 0 for (let id = 0; id < ids.length; id++) { const video = videos.find((v) > v.id == ids[id]) if (!video) { //console.log(`not found: ${}`) continue } const { memberId, member = {}, title, uploadedAt } = video const line = `${deo.id} | Video/10 | ${mberId}/${mber.handle} | ${tle} | Approved | #${loadedAt}\n` if (line.length + batch[b].length > 3000) { b++ batch[b] = head } batch[b] += line } {batch.map((table: string, nr: number) => ( <pre key={nr}> <h1>Batch {nr + 2}</h1> {table} </pre> ))}

classes

1 channel

Index Name Type Required Unique Controller lock Maintainer lock 0 handle {"Single":{"Text":64}} true true false false 1 description {"Single":{"Text":1024}} true false false false 2 coverPhotoUrl {"Single":{"Text":256}} false false false false 3 avatarPhotoUrl {"Single":{"Text":256}} false false false false 4 isPublic {"Single":{"Bool":null}} true false false false 5 isCensored {"Single":{"Bool":null}} false false true false 6 language {"Single":{"Reference":[6,false]}} false false false false

2 ContentCategory

Index Name Type Required Unique Controller lock Maintainer lock 0 name {"Single":{"Text":64}} true true true false 1 description {"Single":{"Text":1024}} false false true false

3 HttpMediaLocation

Index Name Type Required Unique Controller lock Maintainer lock 0 url {"Single":{"Text":256}} true false true false 1 port {"Single":{"Uint16":null}} false false true false

4 JoystreamMediaLocation

Index Name Type Required Unique Controller lock Maintainer lock 0 dataObjectId {"Single":{"Text":48}} true true true false

5 KnownLicense

Index Name Type Required Unique Controller lock Maintainer lock 0 code {"Single":{"Text":16}} true true true false 1 name {"Single":{"Text":64}} false true true false 2 description {"Single":{"Text":1024}} false false true false 3 url {"Single":{"Text":256}} false false true false 4 attributionRequired {"Single":{"Bool":null}} false false true false

6 Language

Index Name Type Required Unique Controller lock Maintainer lock 0 name {"Single":{"Text":64}} true false true false 1 code {"Single":{"Text":2}} true true true false

7 License

Index Name Type Required Unique Controller lock Maintainer lock 0 knownLicense {"Single":{"Reference":[5,false]}} false false false false 1 userDefinedLicense {"Single":{"Reference":[9,true]}} false false false false 2 attribution {"Single":{"Text":512}} false false false false

8 MediaLocation

Index Name Type Required Unique Controller lock Maintainer lock 0 httpMediaLocation {"Single":{"Reference":[3,true]}} false false true false 1 joystreamMediaLocation {"Single":{"Reference":[4,true]}} false false true false

9 UserDefinedLicense

Index Name Type Required Unique Controller lock Maintainer lock 0 content {"Single":{"Text":4096}} true false false false

10 Video

Index Name Type Required Unique Controller lock Maintainer lock 0 channel {"Single":{"Reference":[1,true]}} true false false false 1 category {"Single":{"Reference":[2,false]}} true false false false 2 title {"Single":{"Text":64}} true false false false 3 description {"Single":{"Text":1024}} true false false false 4 duration {"Single":{"Uint32":null}} true false false false 5 skippableIntroDuration {"Single":{"Uint16":null}} false false false false 6 thumbnailUrl {"Single":{"Text":256}} true false false false 7 language {"Single":{"Reference":[6,false]}} false false false false 8 media {"Single":{"Reference":[11,true]}} true true true false 9 hasMarketing {"Single":{"Bool":null}} false false false false 10 publishedBeforeJoystream {"Single":{"Int32":null}} false false false false 11 isPublic {"Single":{"Bool":null}} true false false false 12 isExplicit {"Single":{"Bool":null}} true false false false 13 license {"Single":{"Reference":[7,true]}} true true false false 14 isCensored {"Single":{"Bool":null}} false false true false

11 VideoMedia

Index Name Type Required Unique Controller lock Maintainer lock 0 encoding {"Single":{"Reference":[12,false]}} true false true false 1 pixelWidth {"Single":{"Uint16":null}} true false true false 2 pixelHeight {"Single":{"Uint16":null}} true false true false 3 size {"Single":{"Uint64":null}} false false true false 4 location {"Single":{"Reference":[8,true]}} true false true false