diff --git a/main.go b/main.go index dfa2596..00e9b6a 100644 --- a/main.go +++ b/main.go @@ -61,11 +61,8 @@ func process(torrentFile string) *SceneVideoTorrent { mt *MetaTorrent = new(MetaTorrent) vt *SceneVideoTorrent = new(SceneVideoTorrent) ) - f, err := os.OpenFile(torrentFile, os.O_RDONLY, 755) - fmt.Println("File: ", err) - err = mt.ReadFile(f) - fmt.Println("Read: ", err) - fmt.Printf("%+v\n", mt) + f, _ := os.OpenFile(torrentFile, os.O_RDONLY, 755) + mt.ReadFile(f) vt.Torrent = NewTorrent(*mt) vt.Parse(strings.TrimSuffix(vt.Name, path.Ext(vt.Name))) fmt.Printf("%v\n", *vt) diff --git a/type.go b/type.go index 389738f..6eef416 100644 --- a/type.go +++ b/type.go @@ -17,7 +17,6 @@ type MetaTorrent struct { Info struct { Name string `bencode:"name"` Piece_length int64 `bencode:"piece length"` - Pieces int64 `bencode:"pieces"` Length int64 `bencode:"length"` Files []struct { Length int64 `bencode:"length"`