Remove legacy compare/convert hooks
This commit is contained in:
parent
66c79cee91
commit
e749a32926
24
main.go
24
main.go
|
|
@ -1097,33 +1097,11 @@ func (s *appState) batchAddToQueue(paths []string) {
|
|||
}
|
||||
}
|
||||
s.loadVideos(combined)
|
||||
s.showModule("convert")
|
||||
s.showPlayerView()
|
||||
}
|
||||
}, false)
|
||||
}
|
||||
|
||||
func (s *appState) showConvertView(file *videoSource) {
|
||||
s.stopPreview()
|
||||
s.lastModule = s.active
|
||||
s.active = "convert"
|
||||
if file != nil {
|
||||
s.source = file
|
||||
}
|
||||
if s.source == nil {
|
||||
s.convert.OutputBase = "converted"
|
||||
s.convert.CoverArtPath = ""
|
||||
s.convert.AspectHandling = "Auto"
|
||||
}
|
||||
s.setContent(buildConvertView(s, s.source))
|
||||
}
|
||||
|
||||
func (s *appState) showCompareView() {
|
||||
s.stopPreview()
|
||||
s.lastModule = s.active
|
||||
s.active = "compare"
|
||||
s.setContent(buildCompareView(s))
|
||||
}
|
||||
|
||||
// jobExecutor executes a job from the queue
|
||||
func (s *appState) jobExecutor(ctx context.Context, job *queue.Job, progressCallback func(float64)) error {
|
||||
logging.Debug(logging.CatSystem, "executing job %s: %s", job.ID, job.Title)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user