aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/rewrite
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-12-02 20:51:06 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-12-02 20:51:06 -0800
commit311a133ab87423958d850a91dea0b49543b97c2a (patch)
treed73d39d8adcc23cd69f2e25fab575277e20f3f6e /reader/rewrite
parent52de36b158ab2340d2c206adabb7568d036f1aa2 (diff)
Refactor manual entry scraper
Diffstat (limited to 'reader/rewrite')
-rw-r--r--reader/rewrite/rewriter.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/reader/rewrite/rewriter.go b/reader/rewrite/rewriter.go
index e9b1fae..25c742d 100644
--- a/reader/rewrite/rewriter.go
+++ b/reader/rewrite/rewriter.go
@@ -7,6 +7,7 @@ package rewrite // import "miniflux.app/reader/rewrite"
import (
"strings"
+ "miniflux.app/logger"
"miniflux.app/url"
)
@@ -20,6 +21,8 @@ func Rewriter(entryURL, entryContent, customRewriteRules string) string {
rules := strings.Split(rulesList, ",")
rules = append(rules, "add_pdf_download_link")
+ logger.Debug(`[Rewrite] Applying rules %v for %q`, rules, entryURL)
+
for _, rule := range rules {
switch strings.TrimSpace(rule) {
case "add_image_title":