mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-31 21:24:54 +01:00
Closes #390 - RoyalRoad click link in emails.
This commit is contained in:
parent
3975a37302
commit
befb6e0144
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue