diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-03 22:01:11 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-03 22:01:11 +0000 |
| commit | 20285d3d71465265bea9beab41ae13c55ed01300 (patch) | |
| tree | 401b2ea21c65e54c4367840c5ad1f3b1a06df0b5 | |
| parent | Minor improvements to html provider (diff) | |
| parent | Reorder provider check for local file (diff) | |
| download | paper2remarkable-20285d3d71465265bea9beab41ae13c55ed01300.tar.gz paper2remarkable-20285d3d71465265bea9beab41ae13c55ed01300.zip | |
Merge branch 'master' into feature/html-document
| -rw-r--r-- | paper2remarkable/ui.py | 6 |
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( |
