mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 07:35:57 -05:00
Add streams to the library even if they are unreachable
This commit is contained in:
parent
7982bca6f0
commit
3afd206e93
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user