From 3f22953a668968b3fb092802890f1153a813b03e Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Tue, 9 Feb 2021 19:56:54 +0530 Subject: [PATCH] basic hygeine fixes --- Readme.md | 6 +++--- client/player.html | 5 ++++- controllers/pages.go | 2 ++ main.go | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 0caacec..5e1ba86 100644 --- a/Readme.md +++ b/Readme.md @@ -93,10 +93,10 @@ Podgrab started a tool that I initially built to solve a specific problem I had. - Auto-download new episodes - Download on demand - Podcast Discovery - Search and Add podcasts using iTunes API -- Full-fledged podcast player -- Add using direct RSS feed url / OMPL import / Search +- Full-fledged podcast player - Play downloaded files or stream from original source. +- Add using direct RSS feed URL / OMPL import / Search - Basic Authentication -- Existing episode detection +- Existing episode file detection - Prevent re-downloading files if already present - Easy OPML import/export - Customizable episode names - Dark Mode diff --git a/client/player.html b/client/player.html index 828a8dd..acba249 100644 --- a/client/player.html +++ b/client/player.html @@ -668,6 +668,9 @@ div#large-visualization{ background-color: black; visibility: hidden; } + [v-cloak] { + display: none; + } @@ -676,7 +679,7 @@ div#large-visualization{ {{template "navbar" .}}
{{$setting := .setting}} -
+
diff --git a/controllers/pages.go b/controllers/pages.go index 5f748bd..20e4905 100644 --- a/controllers/pages.go +++ b/controllers/pages.go @@ -164,6 +164,7 @@ func BackupsPage(c *gin.Context) { files, err := service.GetAllBackupFiles() var allFiles []interface{} + setting := c.MustGet("setting").(*db.Setting) for _, file := range files { arr := strings.Split(file, string(os.PathSeparator)) @@ -185,6 +186,7 @@ func BackupsPage(c *gin.Context) { c.HTML(http.StatusOK, "backups.html", gin.H{ "backups": allFiles, "title": "Backups", + "setting": setting, }) } else { c.JSON(http.StatusBadRequest, err) diff --git a/main.go b/main.go index 94ebd11..afe428f 100644 --- a/main.go +++ b/main.go @@ -151,6 +151,7 @@ func setupSettings() gin.HandlerFunc { setting := db.GetOrCreateSetting() c.Set("setting", setting) + c.Writer.Header().Set("X-Clacks-Overhead", "GNU Terry Pratchett") c.Next() }