From ebb323819dbee517a1720a212bd971393737c8ea Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Mon, 18 Jan 2021 12:56:54 +0530 Subject: [PATCH] 1. Download all works instantly 2. Display queue status --- .env | 2 +- client/index.html | 16 +++++++++++++--- controllers/podcast.go | 1 + db/dbfunctions.go | 11 ++++++++--- main.go | 20 ++++++++++++++++++++ service/podcastService.go | 4 ++++ 6 files changed, 47 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 6e57f1d..105fba8 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ CONFIG=. DATA=./assets -CHECK_FREQUENCY = 240 \ No newline at end of file +CHECK_FREQUENCY = 10 \ No newline at end of file diff --git a/client/index.html b/client/index.html index 452dd65..9474d46 100644 --- a/client/index.html +++ b/client/index.html @@ -67,11 +67,21 @@

{{ .Summary }}

-
+
Last Ep : {{ latestEpisodeDate .PodcastItems}}
-
{{ len .PodcastItems }} episodes
-
+ {{$downloading:=downloadingEpisodes .PodcastItems}} +
+ + {{if gt $downloading 0}} ({{$downloading}})/{{end}}{{downloadedEpisodes .PodcastItems}}/{{ len .PodcastItems }} episodes + +
+