diff --git a/twoot.py b/twoot.py index cd15e73..43bc435 100755 --- a/twoot.py +++ b/twoot.py @@ -91,6 +91,9 @@ def deredir_url(url): # If anything goes wrong keep the URL intact return url + if ret.url != url: + logging.debug("Removed redirection from: " + url + " to: " + ret.url) + # Return the URL that the page was downloaded from return ret.url