- const attributes = {
- targetUrl: FIXTURE_URLS.youtube,
- channelId: servers[1].store.channel.id,
- privacy: VideoPrivacy.PUBLIC,
- category: 10,
- licence: 7,
- language: 'en',
- name: 'my super name',
- description: 'my super description',
- tags: [ 'supertag1', 'supertag2' ]
- }
- const { video } = await servers[1].imports.importVideo({ attributes })
+ const { video } = await servers[1].imports.importVideo({
+ attributes: {
+ targetUrl: FIXTURE_URLS.youtube,
+ channelId: servers[1].store.channel.id,
+ privacy: VideoPrivacy.PUBLIC,
+ category: 10,
+ licence: 7,
+ language: 'en',
+ name: 'my super name',
+ description: 'my super description',
+ tags: [ 'supertag1', 'supertag2' ],
+ thumbnailfile: 'thumbnail.jpg'
+ }
+ })