From 11aa8b8a331a9ecf28c01f13cfdaafa1b873fe54 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 4 Apr 2011 22:21:39 +0200 Subject: m3u: added m3u8 extension support --- plugins/m3u/m3u.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/m3u') diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c index 3f22be94..e7bc1df0 100644 --- a/plugins/m3u/m3u.c +++ b/plugins/m3u/m3u.c @@ -336,7 +336,7 @@ m3uplug_load (DB_playItem_t *after, const char *fname, int *pabort, int (*cb)(DB } ext++; - if (!strcasecmp (ext, "m3u")) { + if (!strcasecmp (ext, "m3u") || !strcasecmp (ext, "m3u8")) { return load_m3u (after, fname, pabort, cb, user_data); } else if (!strcasecmp (ext, "pls")) { @@ -421,7 +421,7 @@ m3uplug_save (const char *fname, DB_playItem_t *first, DB_playItem_t *last) { if (!e) { return -1; } - if (!strcasecmp (e, ".m3u")) { + if (!strcasecmp (e, ".m3u") || !strcasecmp (e, ".m3u8")) { return m3uplug_save_m3u (fname, first, last); } else if (!strcasecmp (e, ".pls")) { @@ -430,7 +430,7 @@ m3uplug_save (const char *fname, DB_playItem_t *first, DB_playItem_t *last) { return -1; } -static const char * exts[] = { "m3u", "pls", NULL }; +static const char * exts[] = { "m3u", "m3u8", "pls", NULL }; DB_playlist_t plugin = { DB_PLUGIN_SET_API_VERSION .plugin.version_major = 1, -- cgit v1.2.3