diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-19 19:00:17 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-19 19:00:17 +0100 |
| commit | 5e6f4a8619714e93d7f82515ca6b0a533730a370 (patch) | |
| tree | cdfee086ac1bba5b954375ce7768ba45fd5031f8 /arxiv2remarkable.py | |
| parent | Update help and readme (diff) | |
| download | paper2remarkable-5e6f4a8619714e93d7f82515ca6b0a533730a370.tar.gz paper2remarkable-5e6f4a8619714e93d7f82515ca6b0a533730a370.zip | |
minor bugfix for springer providerv0.3.3
Diffstat (limited to 'arxiv2remarkable.py')
| -rwxr-xr-x | arxiv2remarkable.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
