From 2ce36204fe2708b31d98f09f7cc151f778857461 Mon Sep 17 00:00:00 2001 From: RicterZ Date: Fri, 26 Jun 2020 13:18:08 +0800 Subject: [PATCH 1/3] update tests --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d7edc15..98f81ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ os: language: python python: - - 2.7 - 3.7 install: From 38ff69d99db5c72942f366f45d9efe86315317b8 Mon Sep 17 00:00:00 2001 From: RicterZ Date: Fri, 26 Jun 2020 13:28:10 +0800 Subject: [PATCH 2/3] add sort options --- nhentai/cmdline.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index 7153991..093cc24 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -56,12 +56,11 @@ def cmd_parser(): # page options parser.add_option('--page', type='int', dest='page', action='store', default=1, help='page number of search results') - parser.add_option('--max-page', type='int', dest='max_page', action='store', default=1, - help='The max page when recursive download tagged doujinshi') parser.add_option('--page-range', type='string', dest='page_range', action='store', help='page range of favorites. e.g. 1,2-5,14') parser.add_option('--sorting', dest='sorting', action='store', default='date', - help='sorting of doujinshi (date / popular)', choices=['date', 'popular']) + help='sorting of doujinshi (recent / popular / popular-[today|week])', + choices=['recent', 'popular', 'popular-today', 'popular-week']) # download options parser.add_option('--output', '-o', type='string', dest='output_dir', action='store', default='', From 78429423d9148136cf3a048228c0e87d0f4e2b84 Mon Sep 17 00:00:00 2001 From: RicterZ Date: Fri, 26 Jun 2020 13:29:44 +0800 Subject: [PATCH 3/3] fix bug --- nhentai/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index 093cc24..762a66d 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -58,7 +58,7 @@ def cmd_parser(): help='page number of search results') parser.add_option('--page-range', type='string', dest='page_range', action='store', help='page range of favorites. e.g. 1,2-5,14') - parser.add_option('--sorting', dest='sorting', action='store', default='date', + parser.add_option('--sorting', dest='sorting', action='store', default='recent', help='sorting of doujinshi (recent / popular / popular-[today|week])', choices=['recent', 'popular', 'popular-today', 'popular-week'])