From e8f145f7a1bdb82816c8bd35745d3f6297324018 Mon Sep 17 00:00:00 2001 From: Jake LaFountain Date: Wed, 14 Aug 2024 00:55:02 -0400 Subject: [PATCH] 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) {