[scan] Read m3u8 playlists like m3u

Fixes #1639
This commit is contained in:
ejurgensen 2023-08-15 19:33:50 +02:00
parent 469fcf6707
commit 7f2e05284b
2 changed files with 3 additions and 1 deletions

View File

@ -318,7 +318,7 @@ file_type_get(const char *path) {
if (file_type_ignore(ext)) if (file_type_ignore(ext))
return FILE_IGNORE; 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; return FILE_PLAYLIST;
if (strcasecmp(ext, ".smartpl") == 0) if (strcasecmp(ext, ".smartpl") == 0)

View File

@ -58,6 +58,8 @@ playlist_type(const char *path)
if (strcasecmp(ptr, ".m3u") == 0) if (strcasecmp(ptr, ".m3u") == 0)
return PLAYLIST_M3U; return PLAYLIST_M3U;
else if (strcasecmp(ptr, ".m3u8") == 0)
return PLAYLIST_M3U;
else if (strcasecmp(ptr, ".pls") == 0) else if (strcasecmp(ptr, ".pls") == 0)
return PLAYLIST_PLS; return PLAYLIST_PLS;
else if (strcasecmp(ptr, ".smartpl") == 0) else if (strcasecmp(ptr, ".smartpl") == 0)