Remove debug output

This commit is contained in:
lordwelch 2017-11-30 21:40:41 -07:00
parent 4ce03bf6ef
commit 7610f464b6
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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"`