Change performer country value to be ISO code (#1922)

* Change performer country value to be ISO code
* Localize country names
* Use country select for filter

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
InfiniteTF
2022-10-28 07:37:57 +02:00
committed by GitHub
parent 1c0042c4c2
commit 7b7d6758ef
25 changed files with 1103 additions and 58 deletions

View File

@@ -66,6 +66,8 @@ func (c Cache) postScrapePerformer(ctx context.Context, p models.ScrapedPerforme
logger.Warnf("Could not set image using URL %s: %s", *p.Image, err.Error())
}
p.Country = resolveCountryName(p.Country)
return p, nil
}
@@ -98,6 +100,8 @@ func (c Cache) postScrapeScenePerformer(ctx context.Context, p models.ScrapedPer
}
p.Tags = tags
p.Country = resolveCountryName(p.Country)
return nil
}