feat: update by query

This commit is contained in:
Rogee
2024-12-19 22:56:54 +08:00
parent e3be1079b4
commit 24553e9875
13 changed files with 43 additions and 32 deletions

View File

@@ -153,7 +153,7 @@ func (d *DiscoverMedias) getFileMD5(filePath string) (string, error) {
}
// extractAudio extract audio from video
func (d *DiscoverMedias) extractAudio(video string, output string) error {
func (d *DiscoverMedias) extractAudio(video, output string) error {
args := []string{
"-i", video,
"-vn",
@@ -303,7 +303,7 @@ func (d *DiscoverMedias) runCleanup(to string) {
}
// getSnapshot get the snapshot of target seconds of a video
func (d *DiscoverMedias) ffmpegVideoToPoster(video string, output string) error {
func (d *DiscoverMedias) ffmpegVideoToPoster(video, output string) error {
args := []string{
"-y", // 添加 -y 参数强制覆盖
"-i", video,

View File

@@ -21,6 +21,5 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
return nil
}