Make ffmpeg download location more portable (#1384)

* Download ffmpeg to config path
* Add setup message for ffmpeg download
* Handle missing ffmpeg in tasks
This commit is contained in:
WithoutPants
2021-05-18 09:14:25 +10:00
committed by GitHub
parent 3df7ee06eb
commit 22a2fc3177
5 changed files with 133 additions and 42 deletions

View File

@@ -15,7 +15,9 @@ import (
)
func (r *mutationResolver) MetadataScan(ctx context.Context, input models.ScanMetadataInput) (string, error) {
manager.GetInstance().Scan(input)
if err := manager.GetInstance().Scan(input); err != nil {
return "", err
}
return "todo", nil
}
@@ -71,7 +73,9 @@ func (r *mutationResolver) ExportObjects(ctx context.Context, input models.Expor
}
func (r *mutationResolver) MetadataGenerate(ctx context.Context, input models.GenerateMetadataInput) (string, error) {
manager.GetInstance().Generate(input)
if err := manager.GetInstance().Generate(input); err != nil {
return "", err
}
return "todo", nil
}