diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2022-08-16 13:10:13 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-01-14 12:14:28 -0500 |
commit | 7f265ee8dd062a015e214b16f9c41fc27e867f22 (patch) | |
tree | 87ba5da95ef7870c922fd7206640c976ad72794a /apps/recorder/albumart.c | |
parent | cc79f1b543535e8d7e5b9875af9043c16267e429 (diff) | |
download | rockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.tar.gz rockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.zip |
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
Diffstat (limited to 'apps/recorder/albumart.c')
-rw-r--r-- | apps/recorder/albumart.c | 26 |
1 files changed, 0 insertions, 26 deletions
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) | |||
77 | return (sep + 1); | 77 | return (sep + 1); |
78 | } | 78 | } |
79 | 79 | ||
80 | /* Make sure part of path only contain chars valid for a FAT32 long name. | ||
81 | * Double quotes are replaced with single quotes, other unsupported chars | ||
82 | * are replaced with an underscore. | ||
83 | * | ||
84 | * path - path to modify. | ||
85 | * offset - where in path to start checking. | ||
86 | * count - number of chars to check. | ||
87 | */ | ||
88 | static void fix_path_part(char* path, int offset, int count) | ||
89 | { | ||
90 | static const char invalid_chars[] = "*/:<>?\\|"; | ||
91 | int i; | ||
92 | |||
93 | path += offset; | ||
94 | |||
95 | for (i = 0; i <= count; i++, path++) | ||
96 | { | ||
97 | if (*path == 0) | ||
98 | return; | ||
99 | if (*path == '"') | ||
100 | *path = '\''; | ||
101 | else if (strchr(invalid_chars, *path)) | ||
102 | *path = '_'; | ||
103 | } | ||
104 | } | ||
105 | |||
106 | #ifdef USE_JPEG_COVER | 80 | #ifdef USE_JPEG_COVER |
107 | static const char * const extensions[] = { "jpeg", "jpg", "bmp" }; | 81 | static const char * const extensions[] = { "jpeg", "jpg", "bmp" }; |
108 | static const unsigned char extension_lens[] = { 4, 3, 3 }; | 82 | static const unsigned char extension_lens[] = { 4, 3, 3 }; |