🚧 Ask for next step
This commit is contained in:
parent
c941ed3302
commit
5472d7376a
5 changed files with 26 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue