From 3afd206e9313046f77ff7fdf167fdf1e54040f49 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 11 Apr 2015 22:36:28 +0200 Subject: [PATCH] Add streams to the library even if they are unreachable --- src/filescanner.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/filescanner.c b/src/filescanner.c index 515d5f69..55eb6567 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -694,6 +694,14 @@ filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct { mfi->data_kind = 1; /* url/stream */ ret = scan_metadata_ffmpeg(path, mfi); + if (ret < 0) + { + DPRINTF(E_LOG, L_SCAN, "Playlist URL is unavailable for probe/metadata, assuming MP3 encoding\n"); + mfi->type = strdup("mp3"); + mfi->codectype = strdup("mpeg"); + mfi->description = strdup("MPEG audio file"); + ret = 1; + } } else if (type & F_SCAN_TYPE_SPOTIFY) {