mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-10 15:26:38 +08:00
Add TMDb-backed Emby people metadata and image caching
This commit is contained in:
@@ -74,8 +74,11 @@ func TestMetaTubeProviderSearch(t *testing.T) {
|
||||
if !m.NSFW {
|
||||
t.Errorf("expected NSFW true")
|
||||
}
|
||||
if len(m.Genres) != 1 || m.Genres[0] != "相沢みなみ" {
|
||||
t.Errorf("unexpected genres: %v", m.Genres)
|
||||
if len(m.Genres) != 0 {
|
||||
t.Errorf("actor names must not be persisted as genres: %v", m.Genres)
|
||||
}
|
||||
if len(m.People) != 1 || m.People[0]["Name"] != "相沢みなみ" || m.People[0]["Type"] != "Actor" {
|
||||
t.Errorf("unexpected people: %#v", m.People)
|
||||
}
|
||||
if want := server.URL + "/v1/images/primary/javdb/123456?auto=false&pos=-1&quality=90&ratio=-1&url=https%3A%2F%2Fexample.com%2Fcover.jpg"; m.PosterURL != want {
|
||||
t.Errorf("poster URL = %q, want %q", m.PosterURL, want)
|
||||
|
||||
Reference in New Issue
Block a user