Добавил еще провайдер TVMaze

This commit is contained in:
2026-06-14 15:29:04 +03:00
parent 5087f35861
commit 7419bcb125
12 changed files with 309 additions and 9 deletions
+2
View File
@@ -515,6 +515,8 @@ func providerTag(provider, id string) string {
return "tmdbid-" + id
case "tvdb":
return "tvdbid-" + id
case "imdb":
return "imdbid-" + id
default:
return ""
}
+1
View File
@@ -591,6 +591,7 @@ func TestProviderTag(t *testing.T) {
cases := []struct{ provider, id, want string }{
{"tmdb", "603", "tmdbid-603"},
{"tvdb", "123", "tvdbid-123"},
{"imdb", "tt2802850", "imdbid-tt2802850"},
{"none", "", ""},
{"tmdb", "", ""},
{"weird", "1", ""},