From 7f2e05284b540f152ddf5973e021f31c011391c8 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 15 Aug 2023 19:33:50 +0200 Subject: [PATCH] [scan] Read m3u8 playlists like m3u Fixes #1639 --- src/library/filescanner.c | 2 +- src/library/filescanner_playlist.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/library/filescanner.c b/src/library/filescanner.c index 7d099a62..0b16d110 100644 --- a/src/library/filescanner.c +++ b/src/library/filescanner.c @@ -318,7 +318,7 @@ file_type_get(const char *path) { if (file_type_ignore(ext)) return FILE_IGNORE; - if ((strcasecmp(ext, ".m3u") == 0) || (strcasecmp(ext, ".pls") == 0)) + if ((strcasecmp(ext, ".m3u") == 0) || (strcasecmp(ext, ".pls") == 0) || (strcasecmp(ext, ".m3u8") == 0)) return FILE_PLAYLIST; if (strcasecmp(ext, ".smartpl") == 0) diff --git a/src/library/filescanner_playlist.c b/src/library/filescanner_playlist.c index c7c18471..571e4caa 100644 --- a/src/library/filescanner_playlist.c +++ b/src/library/filescanner_playlist.c @@ -58,6 +58,8 @@ playlist_type(const char *path) if (strcasecmp(ptr, ".m3u") == 0) return PLAYLIST_M3U; + else if (strcasecmp(ptr, ".m3u8") == 0) + return PLAYLIST_M3U; else if (strcasecmp(ptr, ".pls") == 0) return PLAYLIST_PLS; else if (strcasecmp(ptr, ".smartpl") == 0)