feat(indexers): animebytes parse group and category (#327)

* refactor(AB): get releaseGroup

* feat(AB): match category
This commit is contained in:
varoOP 2022-07-06 18:31:52 +05:30 committed by GitHub
parent 97020a957c
commit 95ff83cd3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 6 deletions

View file

@ -426,6 +426,24 @@ func TestRelease_MapVars(t *testing.T) {
definition: IndexerDefinition{Parse: &IndexerParse{ForceSizeUnit: "MB"}},
},
},
{
name: "9",
fields: &Release{},
want: &Release{
TorrentName: "Greatest Anime Ever",
Year: 2022,
Group: "GROUP1",
Tags: []string{"comedy", "fantasy", "school.life", "shounen", "slice.of.life"},
Uploader: "Tester",
},
args: args{varMap: map[string]string{
"torrentName": "Greatest Anime Ever",
"year": "2022",
"releaseGroup": "GROUP1",
"tags": "comedy, fantasy, school.life, shounen, slice.of.life",
"uploader": "Tester",
}},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {