feat:add RSSHub RSSHubAccessKey

This commit is contained in:
Twelveeee
2025-11-06 11:06:26 +08:00
parent bc54cc852e
commit f67db8ea86
2 changed files with 1 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ func (c *ScrapeSourceRSS) Validate() error {
}
// Append access key as query parameter if provided
if c.RSSHubAccessKey != "" && !strings.Contains(c.URL, "key=") {
if c.RSSHubEndpoint != "" && c.RSSHubAccessKey != "" && !strings.Contains(c.URL, "key=") {
if strings.Contains(c.URL, "?") {
c.URL += "&key=" + c.RSSHubAccessKey
} else {