From 7f265ee8dd062a015e214b16f9c41fc27e867f22 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 16 Aug 2022 13:10:13 +0200 Subject: Database: Add ability to insert multiple files into playlists You could only add single files to playlists from the database browser before. This enables adding any database selection to a new or existing playlist. Change-Id: I811c7167641c589944bb2afc18dcc1d299a7b979 --- apps/recorder/albumart.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'apps/recorder/albumart.c') diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index c0d9e6d86f..50794c06c8 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -77,32 +77,6 @@ static char* strip_filename(char* buf, int buf_size, const char* fullpath) return (sep + 1); } -/* Make sure part of path only contain chars valid for a FAT32 long name. - * Double quotes are replaced with single quotes, other unsupported chars - * are replaced with an underscore. - * - * path - path to modify. - * offset - where in path to start checking. - * count - number of chars to check. - */ -static void fix_path_part(char* path, int offset, int count) -{ - static const char invalid_chars[] = "*/:<>?\\|"; - int i; - - path += offset; - - for (i = 0; i <= count; i++, path++) - { - if (*path == 0) - return; - if (*path == '"') - *path = '\''; - else if (strchr(invalid_chars, *path)) - *path = '_'; - } -} - #ifdef USE_JPEG_COVER static const char * const extensions[] = { "jpeg", "jpg", "bmp" }; static const unsigned char extension_lens[] = { 4, 3, 3 }; -- cgit v1.2.3