mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Change -s default value
This commit is contained in:
parent
b99c3395f1
commit
3f12cbae95
1 changed files with 3 additions and 5 deletions
|
|
@ -144,7 +144,7 @@ func init() {
|
|||
Cmd.Flags().StringSliceVarP(&archiveSubLanguagesFlag,
|
||||
"sublang",
|
||||
"s",
|
||||
[]string{},
|
||||
utils.LocalesAsStrings(),
|
||||
"Subtitles langs which should be downloaded. Can be used multiple times")
|
||||
|
||||
cwd, _ := os.Getwd()
|
||||
|
|
@ -534,10 +534,8 @@ func archiveDownloadSubtitles(filename string, subtitles ...*crunchyroll.Subtitl
|
|||
var files []string
|
||||
|
||||
for _, subtitle := range subtitles {
|
||||
if len(archiveSubLanguagesFlag) > 0 {
|
||||
if !utils.ElementInSlice(string(subtitle.Locale), archiveSubLanguagesFlag) {
|
||||
continue
|
||||
}
|
||||
if !utils.ElementInSlice(string(subtitle.Locale), archiveSubLanguagesFlag) {
|
||||
continue
|
||||
}
|
||||
|
||||
f, err := os.CreateTemp("", fmt.Sprintf("%s_%s_subtitle_*.ass", filename, subtitle.Locale))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue