From 222c1c8a7c0b5f86b1833b3f881919323436357c Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 13 Jan 2023 10:43:37 +0100 Subject: [PATCH] added ParsedFile.AnimeEpisode --- parsed_file.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/parsed_file.go b/parsed_file.go index 8f66cb9..3770ce3 100644 --- a/parsed_file.go +++ b/parsed_file.go @@ -29,3 +29,10 @@ func (f *ParsedFile) GetSubtitles() []string { func (f *ParsedFile) GetResolution() Resolution { return f.Resolution } + +func (f *ParsedFile) AnimeEpisode() AnimeEpisode { + return AnimeEpisode{ + Anime: f.Anime, + Episode: f.Episode, + } +}