✨ Filter files properly
This commit is contained in:
parent
3ae78a6704
commit
53b2e169d0
4 changed files with 49 additions and 8 deletions
|
|
@ -10,18 +10,22 @@ import (
|
|||
)
|
||||
|
||||
type Config struct {
|
||||
Source string `toml:"source"`
|
||||
SavePath string `toml:"save_path"`
|
||||
MusicPath string `toml:"music_path"`
|
||||
Source string `toml:"source"`
|
||||
SourceExtensions []string `toml:"source_ext"`
|
||||
Recurse bool `toml:"recurse"`
|
||||
SavePath string `toml:"save_path"`
|
||||
MusicPath string `toml:"music_path"`
|
||||
}
|
||||
|
||||
var config Config
|
||||
|
||||
func newConfig() Config {
|
||||
return Config{
|
||||
Source: xdg.UserDirs.Download,
|
||||
SavePath: filepath.Join(xdg.UserDirs.Documents, "StripBeats"),
|
||||
MusicPath: xdg.UserDirs.Music,
|
||||
Source: xdg.UserDirs.Download,
|
||||
SourceExtensions: []string{"webm", "mp4"},
|
||||
Recurse: true,
|
||||
SavePath: filepath.Join(xdg.UserDirs.Documents, "StripBeats"),
|
||||
MusicPath: xdg.UserDirs.Music,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue