diff --git a/main.go b/main.go index baa4f0f..ede127d 100644 --- a/main.go +++ b/main.go @@ -60,9 +60,10 @@ func process(torrentFile string) *SceneVideoTorrent { mt *MetaTorrent = new(MetaTorrent) vt *SceneVideoTorrent = new(SceneVideoTorrent) ) - f, _ := os.OpenFile(torrentFile, os.O_RDONLY, 755) + f, err := os.OpenFile(torrentFile, os.O_RDONLY, 755) + fmt.Println("File: ",err) err := mt.ReadFile(f) - fmt.Println(err) + fmt.Println("Read: "err) fmt.Printf("%+v\n", mt) vt.Torrent = NewTorrent(*mt) vt.Parse(vt.Name)