🚧 Ask for next step

This commit is contained in:
Dan Jones 2023-09-06 18:46:09 -05:00
commit 5472d7376a
5 changed files with 26 additions and 11 deletions

View file

@ -2,6 +2,7 @@ package media
import (
"codeberg.org/danjones000/strip-beats/config"
"codeberg.org/danjones000/strip-beats/utils"
"encoding/json"
"github.com/akrennmair/slice"
ffmpeg "github.com/u2takey/ffmpeg-go"
@ -62,6 +63,10 @@ func (p Probe) GetFirstAcceptableAudio() *Stream {
return sts[0]
}
func (pr Probe) ShortPath() string {
return utils.GetShortPath(pr.Format.Path)
}
func (pr Probe) WantedAudioStream() *Stream {
count := pr.GetAudioCount()
if count < 1 {