From 3332f86c137a3f7461d79da6131fc7050f90a567 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 14 Nov 2024 23:57:50 +0100 Subject: [PATCH] update unittest to work with operations --- paper2remarkable/providers/arxiv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paper2remarkable/providers/arxiv.py b/paper2remarkable/providers/arxiv.py index eabcbba..fb42b39 100644 --- a/paper2remarkable/providers/arxiv.py +++ b/paper2remarkable/providers/arxiv.py @@ -40,7 +40,9 @@ def __init__(self, *args, **kwargs): self.informer = ArxivInformer() # register the dearxiv operation - self.operations.insert(0, ("dearxiv", self.dearxiv)) + for format in self.operations: + if format in "pdf ps".split(): + self.operations[format].insert(0, ("dearxiv", self.dearxiv)) def get_abs_pdf_urls(self, url): """Get the pdf and abs url from any given arXiv url"""