Fix crash bug if V3 config had > 1 destinations

This commit is contained in:
2023-11-24 21:15:55 +10:30
parent 58d1b0c3de
commit c4e55c0870
2 changed files with 61 additions and 1 deletions

View File

@@ -300,8 +300,8 @@ func (cs *ConfigService) LoadConfig() error {
Args: []string{"-o", fmt.Sprintf("%s/%%(title)s [%%(id)s].%%(ext)s", c.Destinations[i].Path)},
}
c.DownloadOptions = append(c.DownloadOptions, newDownloadOption)
c.Destinations = nil
}
c.Destinations = nil
configMigrated = true
log.Print("migrated config from version 3 => 4")
}