From 509749e74eea08c23bc7d33c4370ed0592324b99 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Thu, 6 May 2021 15:26:44 +0530 Subject: [PATCH] change 301 to 302 and versioning --- Readme.md | 3 ++- client/settings.html | 4 ++++ controllers/podcast.go | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index e44fb19..c92cebe 100644 --- a/Readme.md +++ b/Readme.md @@ -13,7 +13,8 @@ Logo --> -

Podgrab

+

Podgrab

+

Current Version - 2021.05.06

A self-hosted podcast manager to download episodes as soon as they become live diff --git a/client/settings.html b/client/settings.html index 8c182f7..dc044b0 100644 --- a/client/settings.html +++ b/client/settings.html @@ -115,6 +115,10 @@ This project is under active development which means I release new updates very frequently. I will eventually build the version management/update checking mechanism. Until then it is recommended that you use something like watchtower which will automatically update your containers whenever I release a new version or periodically rebuild the container with the latest image manually.

+ + + + diff --git a/controllers/podcast.go b/controllers/podcast.go index 106b12d..9355936 100644 --- a/controllers/podcast.go +++ b/controllers/podcast.go @@ -215,7 +215,7 @@ func GetPodcastItemImageById(c *gin.Context) { err := db.GetPodcastItemById(searchByIdQuery.Id, &podcast) if err == nil { if _, err = os.Stat(podcast.LocalImage); os.IsNotExist(err) { - c.Redirect(301, podcast.Image) + c.Redirect(302, podcast.Image) } else { c.File(podcast.LocalImage) } @@ -236,7 +236,7 @@ func GetPodcastImageById(c *gin.Context) { if err == nil { localPath := service.GetPodcastLocalImagePath(podcast.Image, podcast.Title) if _, err = os.Stat(localPath); os.IsNotExist(err) { - c.Redirect(301, podcast.Image) + c.Redirect(302, podcast.Image) } else { c.File(localPath) }
Current Version2021.05.06
Website https://github.com/akhilrex/podgrab