]> git.lizzy.rs Git - go-anidb.git/blobdiff - episode.go
anidb: Implement MYLISTSTATS
[go-anidb.git] / episode.go
index 80b2b4775a1e87c7e5e53cfa199df85d438a0867..581f5166002f8af628b53c272fcf105768d79d0c 100644 (file)
@@ -22,4 +22,6 @@ type Episode struct {
        Cached time.Time // When the data was retrieved from the server
 }
 
-type Episodes []*Episode
+func (ep *Episode) Anime() *Anime {
+       return ep.AID.Anime()
+}