mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-08 06:16:37 +08:00
fix(subscription): only enqueue missing media
This commit is contained in:
@@ -19,6 +19,7 @@ type LocalAvailability struct {
|
||||
LocalMediaCount int
|
||||
MissingEpisodes []int
|
||||
InLibrary bool
|
||||
HasSeriesPack bool
|
||||
ExistingEpisodeKeys map[string]struct{}
|
||||
MissingEpisodeKeys map[string]struct{}
|
||||
}
|
||||
@@ -88,6 +89,9 @@ func LookupLocalAvailability(ctx context.Context, repo *repository.Container, ti
|
||||
seriesLike := isSubscriptionSeriesType(mediaType)
|
||||
for _, row := range rows {
|
||||
if row.EpisodeNum <= 0 {
|
||||
if seriesLike {
|
||||
out.HasSeriesPack = true
|
||||
}
|
||||
continue
|
||||
}
|
||||
season := row.SeasonNum
|
||||
|
||||
Reference in New Issue
Block a user