File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -344,17 +344,18 @@ def online_search():
344
344
345
345
if args .cache :
346
346
all_chapters = [int (chapter [0 ]) for chapter in folders (directory )]
347
- if args .chapters == 'last' :
348
- print_colored (f'Last downloaded chapter: { max (all_chapters )} ' , Fore .YELLOW , Style .BRIGHT );
349
347
else :
350
348
chapters_json = get (CHAPTERS_WEBSITE + uuid )
351
349
exit_if_fails (chapters_json )
352
350
chapters_full = load_json (chapters_json .content , 'data' , 'result' )
353
351
all_chapters = [int (chapter ['Number' ]) for chapter in chapters_full ]
354
352
353
+ last = max (all_chapters )
354
+ if args .cache :
355
+ print_colored (f'Last downloaded chapter: { last } ' , Fore .YELLOW , Style .BRIGHT );
356
+
355
357
if args .chapters :
356
358
args .chapters = args .chapters .replace (' ' , '' )
357
- last = max (all_chapters )
358
359
parse_chapters_range (args .chapters , last )
359
360
else :
360
361
CHAPTERS .update (all_chapters )
You can’t perform that action at this time.
0 commit comments