From 2538eea1776e1d03d33465ad2001512caca93937 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 20 Sep 2018 03:19:24 +0200 Subject: Add the possibility to override default user agent for each feed --- client/core.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') diff --git a/client/core.go b/client/core.go index 437af51..53d1e13 100644 --- a/client/core.go +++ b/client/core.go @@ -91,6 +91,7 @@ type Feed struct { ScraperRules string `json:"scraper_rules"` RewriteRules string `json:"rewrite_rules"` Crawler bool `json:"crawler"` + UserAgent string `json:"user_agent"` Username string `json:"username"` Password string `json:"password"` Category *Category `json:"category,omitempty"` @@ -105,6 +106,7 @@ type FeedModification struct { ScraperRules *string `json:"scraper_rules"` RewriteRules *string `json:"rewrite_rules"` Crawler *bool `json:"crawler"` + UserAgent *string `json:"user_agent"` Username *string `json:"username"` Password *string `json:"password"` CategoryID *int64 `json:"category_id"` -- cgit v1.2.3