mirror of https://github.com/stashapp/stash.git
Handle null video durations in migration (#3021)
This commit is contained in:
parent
c4c6a3f9c0
commit
7104bb67ca
|
@ -75,5 +75,6 @@ func (d *Decorator) IsMissingMetadata(ctx context.Context, fs file.FS, f file.Fi
|
|||
return vf.VideoCodec == unsetString || vf.AudioCodec == unsetString ||
|
||||
vf.Format == unsetString || vf.Width == unsetNumber ||
|
||||
vf.Height == unsetNumber || vf.FrameRate == unsetNumber ||
|
||||
vf.Duration == unsetNumber ||
|
||||
vf.BitRate == unsetNumber || interactive != vf.Interactive
|
||||
}
|
||||
|
|
|
@ -458,7 +458,7 @@ INSERT INTO `video_files`
|
|||
)
|
||||
SELECT
|
||||
`files`.`id`,
|
||||
`scenes`.`duration`,
|
||||
COALESCE(`scenes`.`duration`, -1),
|
||||
-- special values for unset to be updated during scan
|
||||
COALESCE(`scenes`.`video_codec`, 'unset'),
|
||||
COALESCE(`scenes`.`format`, 'unset'),
|
||||
|
|
Loading…
Reference in New Issue