Skip to content

Commit

Permalink
fix: ensure there is no infinite recursion of URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
NGTmeaty committed Aug 14, 2024
1 parent c220114 commit e8f145f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/crawl/sitespecific/libsyn/libsyn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e8f145f

Please sign in to comment.