0.2.48 - Tv calender fixes
This commit is contained in:
@@ -282,11 +282,11 @@ func sonarrPremiereEpisode(
|
||||
// about refusing.
|
||||
func TestSonarrPremieresSelectsOnlyPlayableSeasonOpeners(t *testing.T) {
|
||||
index := seriesIndex{
|
||||
"newshow": "emby-new",
|
||||
"returning": "emby-returning",
|
||||
"notinlibrary": "",
|
||||
"specials": "emby-specials",
|
||||
"undownloaded": "emby-undownloaded",
|
||||
"newshow": {ID: "emby-new"},
|
||||
"returning": {ID: "emby-returning"},
|
||||
"notinlibrary": {},
|
||||
"specials": {ID: "emby-specials"},
|
||||
"undownloaded": {ID: "emby-undownloaded"},
|
||||
}
|
||||
delete(index, "notinlibrary")
|
||||
|
||||
@@ -320,7 +320,7 @@ func TestSonarrPremieresSelectsOnlyPlayableSeasonOpeners(t *testing.T) {
|
||||
// A show that premiered and then returned inside one window is one card about its newer
|
||||
// season, not two cards about the same show.
|
||||
func TestSonarrPremieresKeepsOneCardPerSeries(t *testing.T) {
|
||||
index := seriesIndex{"show": "emby-show"}
|
||||
index := seriesIndex{"show": {ID: "emby-show"}}
|
||||
premieres := sonarrPremieres([]sonarr.Episode{
|
||||
sonarrPremiereEpisode("Show", 1, 1, heroDaysAgo(15), true),
|
||||
sonarrPremiereEpisode("Show", 2, 1, heroDaysAgo(2), true),
|
||||
|
||||
Reference in New Issue
Block a user