models

package
v0.0.0-...-66dfbcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanSubtitles

func CleanSubtitles(Filename string, Subtitles []Track)

CleanSubtitles all str files

func ExtractSrt

func ExtractSrt(Filename string, Subtitles []Track)

ExtractSrt Extract the subtitles from the MKV

func FindReplaceString

func FindReplaceString(Filename string, isSRT bool)

FindReplaceString remplace string inside str

func GetFileInfo

func GetFileInfo(Filename string) ([]Track, []Track, []Track, error)

GetFileInfo MKV info JSON structure

func Muxing

func Muxing(Filename string, Videos []Track, Audios []Track, Subtitles []Track)

Muxing all tracks

func ReadConfig

func ReadConfig()

ReadConfig is read yaml file config

Types

type Config

type Config struct {
	ListADStoRemove []string `yaml:"list_ads_to_remove"`
	SortLang        string   `yaml:"sort_lang"`
	MaxTracksAudio  int      `yaml:"max_tracks_audio"`
	MaxTracksSub    int      `yaml:"max_tracks_sub"`
	KeepOrgFile     bool     `yaml:"keep_org_file"`
	AddToTitle      string   `yaml:"add_to_title"`
	StrAddToStrs    string   `yaml:"str_add_to_srts"`
}

Config extract config file

var CFG Config

CFG global variable from config mkvpassthrucfg.yml

type Track

type Track struct {
	ID    int
	Lang  string
	Codec string
}

Track return structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳