We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 269a5bf commit 98823e2Copy full SHA for 98823e2
db/db.go
@@ -534,7 +534,7 @@ func (c *client) SetEpisodeStatus(id int, status episode.Status) error {
534
535
func (c *client) IsEpisodeDownloadingOrDownloaded(id int) bool {
536
ep, _ := c.GetEpisodeByID(id)
537
- his := c.ent.History.Query().Where(history.EpisodeNumsNotNil()).AllX(context.Background())
+ his := c.ent.History.Query().Where(history.EpisodeNumsNotNil(), history.StatusNEQ(history.StatusRemoved)).AllX(context.Background())
538
for _, h := range his {
539
if !slices.Contains(h.EpisodeNums, ep.EpisodeNumber) {
540
continue
0 commit comments