mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-22 03:37:30 +08:00
fix: status
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user