From 5e6f4a8619714e93d7f82515ca6b0a533730a370 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 19 Aug 2019 19:00:17 +0100 Subject: minor bugfix for springer provider --- arxiv2remarkable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arxiv2remarkable.py') diff --git a/arxiv2remarkable.py b/arxiv2remarkable.py index d8add60..877078c 100755 --- a/arxiv2remarkable.py +++ b/arxiv2remarkable.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "0.3.2" +__version__ = "0.3.3" __author__ = "G.J.J. van den Burg" """ @@ -546,8 +546,8 @@ class Springer(Provider): abs_url = url pdf_url = url.replace("article", "content/pdf") elif re.match(self.re_pdf, url): - abs_url = url.replace("content/pdf", "article") - pdf_url = url + abs_url = url.replace("content/pdf", "article")[: -len(".pdf")] + pdf_url = urllib.parse.unquote(url) else: exception("Couldn't figure out Springer urls.") return abs_url, pdf_url -- cgit v1.2.3