aboutsummaryrefslogtreecommitdiff
path: root/arxiv2remarkable.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-19 19:00:17 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-19 19:00:17 +0100
commit5e6f4a8619714e93d7f82515ca6b0a533730a370 (patch)
treecdfee086ac1bba5b954375ce7768ba45fd5031f8 /arxiv2remarkable.py
parentUpdate help and readme (diff)
downloadpaper2remarkable-5e6f4a8619714e93d7f82515ca6b0a533730a370.tar.gz
paper2remarkable-5e6f4a8619714e93d7f82515ca6b0a533730a370.zip
minor bugfix for springer providerv0.3.3
Diffstat (limited to 'arxiv2remarkable.py')
-rwxr-xr-xarxiv2remarkable.py6
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