From afdf9e2e2616db4036477574095ee0d3a3635063 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 9 Mar 2025 23:29:58 +0100 Subject: Fix mangakatana download not working --- plugins/mangakatana.py | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mangakatana.py b/plugins/mangakatana.py index 85fd8d0..586c4ee 100755 --- a/plugins/mangakatana.py +++ b/plugins/mangakatana.py @@ -110,7 +110,7 @@ def get_javascript_string_arrays(js_source): return arrays arr = js_source[start:end].replace("'", "").split(",") - arrays.extend(list(filter(None, arr))) + arrays.extend(list(filter(lambda x: x is not None and ".com" in x, arr))) start = end + 1 def uniq_str_arr(arr): diff --git a/src/main.c b/src/main.c index 52d68ec..8e743eb 100644 --- a/src/main.c +++ b/src/main.c @@ -82,7 +82,7 @@ static void usage_cleanup(void) { fprintf(stderr, "usage: automedia cleanup [-d ] [search_term]\n"); fprintf(stderr, "OPTIONS\n"); fprintf(stderr, " -d Media that haven't received any updates in the specified amount of days will be shown. If not specified then all media will be included\n"); - fprintf(stderr, " search_term The name of the media to find. If not inclued then all media (within -d days) will be included. Note this is case insensitive\n"); + fprintf(stderr, " search_term The name of the media to find. If not specified then all media (within -d days) will be included. Note this is case insensitive\n"); fprintf(stderr, "EXAMPLES\n"); fprintf(stderr, " automedia cleanup -d 100\n"); fprintf(stderr, " automedia cleanup baki\n"); -- cgit v1.2.3-70-g09d2