make title optional
This commit is contained in:
parent
c9166d6413
commit
4df44a365a
@ -252,7 +252,6 @@ function addClip(event: any) {
|
|||||||
playlistStore.playlist.splice(n, 0, {
|
playlistStore.playlist.splice(n, 0, {
|
||||||
uid,
|
uid,
|
||||||
begin: 0,
|
begin: 0,
|
||||||
title: mediaStore.folderTree.files[o].name,
|
|
||||||
source: sourcePath,
|
source: sourcePath,
|
||||||
in: 0,
|
in: 0,
|
||||||
out: mediaStore.folderTree.files[o].duration,
|
out: mediaStore.folderTree.files[o].duration,
|
||||||
|
@ -214,6 +214,10 @@ export const playlistOperations = () => {
|
|||||||
delete item.custom_filter
|
delete item.custom_filter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!item.title) {
|
||||||
|
delete item.title
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
begin + (item.out - item.in) >
|
begin + (item.out - item.in) >
|
||||||
configStore.playout.playlist.startInSec + configStore.playout.playlist.lengthInSec
|
configStore.playout.playlist.startInSec + configStore.playout.playlist.lengthInSec
|
||||||
|
@ -246,7 +246,7 @@ const isVideo = ref(false)
|
|||||||
|
|
||||||
const newSource = ref({
|
const newSource = ref({
|
||||||
begin: 0,
|
begin: 0,
|
||||||
title: '',
|
title: null,
|
||||||
in: 0,
|
in: 0,
|
||||||
out: 0,
|
out: 0,
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
@ -17,7 +17,7 @@ export const usePlaylist = defineStore('playlist', {
|
|||||||
progressValue: 0,
|
progressValue: 0,
|
||||||
currentClip: '',
|
currentClip: '',
|
||||||
currentClipIndex: 0,
|
currentClipIndex: 0,
|
||||||
currentClipTitle: '',
|
currentClipTitle: null as null | string,
|
||||||
currentClipStart: 0,
|
currentClipStart: 0,
|
||||||
currentClipDuration: 0,
|
currentClipDuration: 0,
|
||||||
currentClipIn: 0,
|
currentClipIn: 0,
|
||||||
@ -82,7 +82,7 @@ export const usePlaylist = defineStore('playlist', {
|
|||||||
this.currentClipIn = item.media.in
|
this.currentClipIn = item.media.in
|
||||||
this.currentClipOut = item.media.out
|
this.currentClipOut = item.media.out
|
||||||
this.currentClipDuration = item.media.duration
|
this.currentClipDuration = item.media.duration
|
||||||
this.currentClipTitle = item.media.title ?? ''
|
this.currentClipTitle = item.media.title ?? null
|
||||||
this.currentClipIndex = item.index
|
this.currentClipIndex = item.index
|
||||||
this.elapsedSec = item.elapsed
|
this.elapsedSec = item.elapsed
|
||||||
this.ingestRuns = item.ingest
|
this.ingestRuns = item.ingest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user