feat: update by query
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -21,6 +21,5 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -21,6 +21,5 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := container.Container.Provide(func(
|
||||
userSvc *users.Service,
|
||||
) (*Create, error) {
|
||||
@@ -35,7 +34,6 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := container.Container.Provide(func(
|
||||
userSvc *users.Service,
|
||||
) (*Expire, error) {
|
||||
@@ -49,6 +47,5 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user