From 8a94fd9d4b54e05ecd11ce4bc1fd9b0feb92b239 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Sat, 17 Feb 2018 15:22:51 +0100 Subject: Sets config option to disable url shorter. (crawler) --- crawler/post_process.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawler/post_process.go') diff --git a/crawler/post_process.go b/crawler/post_process.go index 4688cc8..40845b9 100644 --- a/crawler/post_process.go +++ b/crawler/post_process.go @@ -10,7 +10,13 @@ import ( func (app *App) post_process() error { - return app.short_url() + if app.Config.DisableURLShorter { + log.Debug("post_process.go: URL Shorter is disabled (via config)") + return nil + } else { + return app.short_url() + } + } func (app *App) short_url() error { -- cgit v1.2.3