ParsedFile improved
This commit is contained in:
parent
2504dcc85f
commit
466e1111dd
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module git.milar.in/nyaanime/model
|
||||
|
||||
go 1.18
|
||||
|
||||
require git.milar.in/milarin/anilist v1.4.1
|
||||
require git.milar.in/milarin/anilist v1.5.0
|
||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
||||
git.milar.in/milarin/anilist v1.4.1 h1:XxpKZ3CZiwKf7tUW2z+OMktWt/fLKMd8xAGPr+eodQE=
|
||||
git.milar.in/milarin/anilist v1.4.1/go.mod h1:8PTHXFMA45JpfRFIpcdrKwDHue8fbT/wwV1BuHFn6c0=
|
||||
git.milar.in/milarin/anilist v1.5.0 h1:fSiAXY/topNk4ISEp2QtcG9HHKLJfMc8w05iqc+Paf0=
|
||||
git.milar.in/milarin/anilist v1.5.0/go.mod h1:8PTHXFMA45JpfRFIpcdrKwDHue8fbT/wwV1BuHFn6c0=
|
||||
|
@ -1,7 +1,31 @@
|
||||
package model
|
||||
|
||||
import "git.milar.in/milarin/anilist"
|
||||
|
||||
type ParsedFile struct {
|
||||
FileName string
|
||||
// parsed data
|
||||
Anime *anilist.Media
|
||||
OriginalAnimeTitle string
|
||||
Episode int
|
||||
Languages []string
|
||||
Subtitles []string
|
||||
Resolution Resolution
|
||||
|
||||
// meta data
|
||||
File string
|
||||
Parser *Parser
|
||||
}
|
||||
|
||||
var _ PropertyHolder = &ParsedFile{}
|
||||
|
||||
func (f *ParsedFile) GetLanguages() []string {
|
||||
return f.Languages
|
||||
}
|
||||
|
||||
func (f *ParsedFile) GetSubtitles() []string {
|
||||
return f.Subtitles
|
||||
}
|
||||
|
||||
func (f *ParsedFile) GetResolution() Resolution {
|
||||
return f.Resolution
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user