aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-03 22:01:11 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-03 22:01:11 +0000
commit20285d3d71465265bea9beab41ae13c55ed01300 (patch)
tree401b2ea21c65e54c4367840c5ad1f3b1a06df0b5
parentMinor improvements to html provider (diff)
parentReorder provider check for local file (diff)
downloadpaper2remarkable-20285d3d71465265bea9beab41ae13c55ed01300.tar.gz
paper2remarkable-20285d3d71465265bea9beab41ae13c55ed01300.zip
Merge branch 'master' into feature/html-document
-rw-r--r--paper2remarkable/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paper2remarkable/ui.py b/paper2remarkable/ui.py
index 05116ee..38eb4fb 100644
--- a/paper2remarkable/ui.py
+++ b/paper2remarkable/ui.py
@@ -108,13 +108,13 @@ def main():
# input is a url
url, cookiejar = follow_redirects(args.input)
provider = HTML
+ elif LocalFile.validate(args.input):
+ # input is a local file
+ provider = LocalFile
elif is_url(args.input):
# input is a url
url, cookiejar = follow_redirects(args.input)
provider = next((p for p in providers if p.validate(url)), None)
- elif LocalFile.validate(args.input):
- # input is a local file
- provider = LocalFile
else:
# not a proper URL or non-existent file
exception(