diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-10 08:27:42 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-10 08:27:42 +0000 |
commit | 48d6bfcd064c3b8264bfdfed0f09faa36d076cfc (patch) | |
tree | e3042e1b7916f4b802ae45444e782364edcf8690 | |
parent | 0e4bc2b395d1ca6ce97dff7830cd3de197446c56 (diff) | |
download | rockbox-48d6bfcd064c3b8264bfdfed0f09faa36d076cfc.tar.gz rockbox-48d6bfcd064c3b8264bfdfed0f09faa36d076cfc.zip |
Fix FS#6520, allow search.rock to open .m3u8 playlists. Only the
extension check was fixed, so playlists with non-ascii chars probably
wont work correclty.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11973 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/search.c b/apps/plugins/search.c index b8cc5bff5e..c174abfd24 100644 --- a/apps/plugins/search.c +++ b/apps/plugins/search.c | |||
@@ -156,8 +156,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
156 | 156 | ||
157 | DEBUGF("%s - %s\n", parameter, &filename[rb->strlen(filename)-4]); | 157 | DEBUGF("%s - %s\n", parameter, &filename[rb->strlen(filename)-4]); |
158 | /* Check the extension. We only allow .m3u files. */ | 158 | /* Check the extension. We only allow .m3u files. */ |
159 | if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u")) { | 159 | if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u") && |
160 | rb->splash(HZ, true, "Not a .m3u file"); | 160 | rb->strcasecmp(&filename[rb->strlen(filename)-5], ".m3u8")) { |
161 | rb->splash(HZ, true, "Not a .m3u or .m3u8 file"); | ||
161 | return PLUGIN_ERROR; | 162 | return PLUGIN_ERROR; |
162 | } | 163 | } |
163 | 164 | ||