+ async quickCreate (options: OverrideCommandOptions & {
+ saveReplay: boolean
+ permanentLive: boolean
+ privacy?: VideoPrivacy
+ }) {
+ const { saveReplay, permanentLive, privacy } = options
+
+ const { uuid } = await this.create({
+ ...options,
+
+ fields: {
+ name: 'live',
+ permanentLive,
+ saveReplay,
+ channelId: this.server.store.channel.id,
+ privacy
+ }
+ })
+
+ const video = await this.server.videos.getWithToken({ id: uuid })
+ const live = await this.get({ videoId: uuid })
+
+ return { video, live }
+ }
+