From 0a78609dfbaeba6f6897c37113f5750a5fe69472 Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Sat, 24 Sep 2016 00:04:19 +0200 Subject: amiga "lha" files supported Fixes #155 --- src/fr-command-lha.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c index 55a7218..033bdf6 100644 --- a/src/fr-command-lha.c +++ b/src/fr-command-lha.c @@ -120,6 +120,11 @@ split_line_lha (char *line) fields[i++] = g_strdup (""); line += strlen ("[unknown]"); } + else if (strncmp (line, "[Amiga]", 7) == 0) { + fields[i++] = g_strdup (""); + fields[i++] = g_strdup (""); + line += strlen ("[Amiga]"); + } scan = eat_spaces (line); for (; i < n_fields; i++) { @@ -150,6 +155,9 @@ get_last_field_lha (char *line) if (strncmp (line, "[unknown]", 9) == 0) n--; + if (strncmp (line, "[Amiga]", 7) == 0) + n--; + field = eat_spaces (line); for (i = 0; i < n; i++) { field = strchr (field, ' '); -- cgit v1.2.1