fix: status

This commit is contained in:
Simon Ding
2024-08-02 14:39:01 +08:00
parent b24c1a1501
commit 5b0b2ce5b0
2 changed files with 5 additions and 5 deletions

View File

@@ -291,9 +291,9 @@ func (s *Server) GetTvWatchlist(c *gin.Context) (interface{}, error) {
for _, ep := range details.Episodes {
if ep.Monitored {
ms.MonitoredNum++
}
if ep.Status == episode.StatusDownloaded {
ms.DownloadedNum++
if ep.Status == episode.StatusDownloaded {
ms.DownloadedNum++
}
}
}
res[i] = ms

View File

@@ -70,8 +70,8 @@ class WelcomePage extends ConsumerWidget {
children: [
LinearProgressIndicator(
value: 1,
color: item.downloadedNum ==
item.monitoredNum
color: item.downloadedNum! >=
item.monitoredNum!
? Colors.green
: Colors.blue,
),