]> git.lizzy.rs Git - go-anidb.git/blobdiff - episode.go
anidb: Add shortcut cache querying functions
[go-anidb.git] / episode.go
index 9505f3c1bb0653c9898f753d16651d52fa4c145b..581f5166002f8af628b53c272fcf105768d79d0c 100644 (file)
@@ -21,3 +21,7 @@ type Episode struct {
 
        Cached time.Time // When the data was retrieved from the server
 }
+
+func (ep *Episode) Anime() *Anime {
+       return ep.AID.Anime()
+}