Merge pull request #18 from nallown/go

Change anime status from "TBA" and "Unreleased" into "Upcoming"
This commit is contained in:
Eduard Urbach 2017-11-11 10:46:05 +01:00 committed by GitHub
commit 097dbb5302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,11 @@ func sync(data *kitsu.Anime) *arn.Anime {
anime.EpisodeCount = attr.EpisodeCount anime.EpisodeCount = attr.EpisodeCount
anime.EpisodeLength = attr.EpisodeLength anime.EpisodeLength = attr.EpisodeLength
anime.Status = attr.Status anime.Status = attr.Status
if attr.Status == "tba" || attr.Status == "unreleased" {
anime.Status = "upcoming"
}
anime.Summary = arn.FixAnimeDescription(attr.Synopsis) anime.Summary = arn.FixAnimeDescription(attr.Synopsis)
if anime.Mappings == nil { if anime.Mappings == nil {