From befb6e0144554a8d62465e6a77948255ab3d4b15 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 6 Apr 2019 10:09:55 -0500 Subject: [PATCH] Closes #390 - RoyalRoad click link in emails. --- fanficfare/geturls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/geturls.py b/fanficfare/geturls.py index d1024b26..583a1ae2 100644 --- a/fanficfare/geturls.py +++ b/fanficfare/geturls.py @@ -192,7 +192,7 @@ def cleanup_url(href,email=False): ## only sent for thread updates, I believe. Email only so ## get_urls_from_page can still get post URLs. href = re.sub(r"/(unread|page-\d+)?(#post-\d+)?",r"/",href) - elif 'clicktracker.royalroad' in href: + elif 'click' in href and 'royalroad' in href: # they've changed the domain at least once logger.debug(href) from .six.moves.urllib.request import build_opener opener = build_opener()