diff options
author | waker <wakeroid@gmail.com> | 2011-04-04 22:21:39 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-04 22:21:39 +0200 |
commit | 11aa8b8a331a9ecf28c01f13cfdaafa1b873fe54 (patch) | |
tree | 5ece2ff85e836acce73999294d959fcce6a317d0 /plugins/m3u | |
parent | 2e1634f3c137e3b9aa636fe310d3391b2be378bf (diff) |
m3u: added m3u8 extension support
Diffstat (limited to 'plugins/m3u')
-rw-r--r-- | plugins/m3u/m3u.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |