diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-04-07 21:27:34 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-04-07 21:27:34 +0100 |
| commit | 10db3bf12003ee2c4e7e8a0b3cba305d06d140f8 (patch) | |
| tree | e709f1ec194def684790b437af15e9a6fa21a07e /arxiv2remarkable.py | |
| parent | [WIP] rewrite to use Providers (diff) | |
| parent | Merge branch 'master' of https://github.com/GjjvdBurg/arxiv2remarkable (diff) | |
| download | paper2remarkable-10db3bf12003ee2c4e7e8a0b3cba305d06d140f8.tar.gz paper2remarkable-10db3bf12003ee2c4e7e8a0b3cba305d06d140f8.zip | |
Merge branch 'master' into wip_gertjan
Diffstat (limited to 'arxiv2remarkable.py')
| -rwxr-xr-x | arxiv2remarkable.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arxiv2remarkable.py b/arxiv2remarkable.py index a0b4a94..5152018 100755 --- a/arxiv2remarkable.py +++ b/arxiv2remarkable.py @@ -437,7 +437,9 @@ def generate_filename(info): title = info["title"].replace(",", "").replace(":", "").replace(" ", "_") title_part = titlecase.titlecase(title) year_part = info["date"].split("/")[0] - return author_part + "_-_" + title_part + "_" + year_part + ".pdf" + name = author_part + "_-_" + title_part + "_" + year_part + ".pdf" + logger.info("Created filename: %s" % name) + return name def upload_to_rm(filepath, remarkable_dir="/", rmapi_path="rmapi"): |
