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
This commit is contained in:
parent
0e4bc2b395
commit
48d6bfcd06
1 changed files with 3 additions and 2 deletions
|
@ -156,8 +156,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
|
|
||||||
DEBUGF("%s - %s\n", parameter, &filename[rb->strlen(filename)-4]);
|
DEBUGF("%s - %s\n", parameter, &filename[rb->strlen(filename)-4]);
|
||||||
/* Check the extension. We only allow .m3u files. */
|
/* Check the extension. We only allow .m3u files. */
|
||||||
if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u")) {
|
if(rb->strcasecmp(&filename[rb->strlen(filename)-4], ".m3u") &&
|
||||||
rb->splash(HZ, true, "Not a .m3u file");
|
rb->strcasecmp(&filename[rb->strlen(filename)-5], ".m3u8")) {
|
||||||
|
rb->splash(HZ, true, "Not a .m3u or .m3u8 file");
|
||||||
return PLUGIN_ERROR;
|
return PLUGIN_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue