From 1d33bf5db71c677dd04752e618bf0243002d2268 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 27 Sep 2015 03:48:58 +0200 Subject: [PATCH] Add uppercase 'ISO' extension too --- tasks/task_database.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tasks/task_database.c b/tasks/task_database.c index 43cd82933d..a4b04084de 100644 --- a/tasks/task_database.c +++ b/tasks/task_database.c @@ -28,15 +28,16 @@ #include "../msg_hash.h" #include "../general.h" -#define CB_DB_SCAN_FILE 0x70ce56d2U -#define CB_DB_SCAN_FOLDER 0xde2bef8eU +#define CB_DB_SCAN_FILE 0x70ce56d2U +#define CB_DB_SCAN_FOLDER 0xde2bef8eU -#define HASH_EXTENSION_ZIP 0x0b88c7d8U -#define HASH_EXTENSION_CUE 0x0b886782U -#define HASH_EXTENSION_ISO 0x0b8880d0U +#define HASH_EXTENSION_ZIP 0x0b88c7d8U +#define HASH_EXTENSION_CUE 0x0b886782U +#define HASH_EXTENSION_ISO 0x0b8880d0U +#define HASH_EXTENSION_ISO_UPPERCASE 0x0b87f470U #ifndef COLLECTION_SIZE -#define COLLECTION_SIZE 99999 +#define COLLECTION_SIZE 99999 #endif typedef struct database_state_handle @@ -196,6 +197,7 @@ static int database_info_iterate_playlist( db->type = DATABASE_TYPE_SERIAL_LOOKUP; return 1; case HASH_EXTENSION_ISO: + case HASH_EXTENSION_ISO_UPPERCASE: db_state->serial[0] = '\0'; iso_get_serial(db_state, db, name, db_state->serial); db->type = DATABASE_TYPE_SERIAL_LOOKUP;