mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:36:16 +00:00
Ignore pictures when parsing divelogs.de import
Do not do XML parse on pictures. Currently just ignore them, in the future we might want to save them somewhere and include them in Subsurface logs. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8ae5b816bd
commit
5d1bc11ab7
1 changed files with 3 additions and 0 deletions
3
file.c
3
file.c
|
@ -89,6 +89,9 @@ static int try_to_open_zip(const char *filename, struct memblock *mem)
|
|||
struct zip_file *file = zip_fopen_index(zip, index, 0);
|
||||
if (!file)
|
||||
break;
|
||||
/* skip parsing the divelogs.de pictures */
|
||||
if (strstr(zip_get_name(zip, index, 0), "pictures/"))
|
||||
continue;
|
||||
zip_read(file, filename);
|
||||
zip_fclose(file);
|
||||
success++;
|
||||
|
|
Loading…
Add table
Reference in a new issue