Fix wget output

This commit is contained in:
lordwelch 2017-11-30 20:08:54 -07:00
parent bf7d9e95b7
commit 349e7cf160

View File

@ -41,7 +41,7 @@ func main() {
url := strings.TrimSpace(scanner.Text())
torrentName = filepath.Base(url)
torrentPath = filepath.Join(unselectedDir, torrentName)
cmd := exec.Command("wget", url, "-o", torrentPath)
cmd := exec.Command("wget", url, "-O", torrentPath)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
@ -62,7 +62,7 @@ func process(torrentFile string) *SceneVideoTorrent {
)
f, err := os.OpenFile(torrentFile, os.O_RDONLY, 755)
fmt.Println("File: ",err)
err := mt.ReadFile(f)
err = mt.ReadFile(f)
fmt.Println("Read: "err)
fmt.Printf("%+v\n", mt)
vt.Torrent = NewTorrent(*mt)