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 { for _, ep := range details.Episodes {
if ep.Monitored { if ep.Monitored {
ms.MonitoredNum++ ms.MonitoredNum++
} if ep.Status == episode.StatusDownloaded {
if ep.Status == episode.StatusDownloaded { ms.DownloadedNum++
ms.DownloadedNum++ }
} }
} }
res[i] = ms res[i] = ms

View File

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