From e8f145f7a1bdb82816c8bd35745d3f6297324018 Mon Sep 17 00:00:00 2001 From: Jake LaFountain Date: Wed, 14 Aug 2024 00:55:02 -0400 Subject: [PATCH 1/2] fix: ensure there is no infinite recursion of URLs --- internal/pkg/crawl/sitespecific/libsyn/libsyn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/crawl/sitespecific/libsyn/libsyn.go b/internal/pkg/crawl/sitespecific/libsyn/libsyn.go index bb6dba2b..89dbebea 100644 --- a/internal/pkg/crawl/sitespecific/libsyn/libsyn.go +++ b/internal/pkg/crawl/sitespecific/libsyn/libsyn.go @@ -9,7 +9,7 @@ import ( // into https://traffic.libsyn.com/secure/force-cdn/highwinds/democratieparticipative/DPS09E16.mp3 // So it's basically adding /secure/force-cdn/highwinds/ after the domain. func IsLibsynURL(URL string) bool { - return strings.Contains(URL, "traffic.libsyn.com") && strings.HasSuffix(URL, ".mp3") + return strings.Contains(URL, "traffic.libsyn.com") && strings.HasSuffix(URL, ".mp3") && !strings.Contains(URL, "force-cdn/highwinds") } func GenerateHighwindsURL(URL string) (*url.URL, error) { From c10a3b65ef0d1d6746d1478842c41f583493ce20 Mon Sep 17 00:00:00 2001 From: Jake LaFountain Date: Wed, 14 Aug 2024 01:17:38 -0400 Subject: [PATCH 2/2] fix: ensure "modified" in the version string does not persist through --- internal/pkg/crawl/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/crawl/config.go b/internal/pkg/crawl/config.go index 457d0b3c..2642459d 100644 --- a/internal/pkg/crawl/config.go +++ b/internal/pkg/crawl/config.go @@ -289,7 +289,7 @@ func GenerateCrawlConfig(config *config.Config) (*Crawl, error) { version := utils.GetVersion() // If Version is a commit hash, we only take the first 7 characters - if len(version.Version) == 40 { + if len(version.Version) >= 40 { version.Version = version.Version[:7] }