mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[library] accept https:// streams
This commit is contained in:
parent
c36df4fb8e
commit
bc8a156132
@ -1716,7 +1716,7 @@ queue_add_stream(const char *path, int position, char reshuffle, uint32_t item_i
|
|||||||
static int
|
static int
|
||||||
queue_add(const char *uri, int position, char reshuffle, uint32_t item_id, int *count, int *new_item_id)
|
queue_add(const char *uri, int position, char reshuffle, uint32_t item_id, int *count, int *new_item_id)
|
||||||
{
|
{
|
||||||
if (strncasecmp(uri, "http://", strlen("http://")) == 0)
|
if (strncasecmp(uri, "http://", strlen("http://")) == 0 || strncasecmp(uri, "https://", strlen("https://")) == 0)
|
||||||
{
|
{
|
||||||
queue_add_stream(uri, position, reshuffle, item_id, count, new_item_id);
|
queue_add_stream(uri, position, reshuffle, item_id, count, new_item_id);
|
||||||
return LIBRARY_OK;
|
return LIBRARY_OK;
|
||||||
@ -1903,7 +1903,7 @@ playlist_add_files(FILE *fp, int pl_id, const char *virtual_path)
|
|||||||
DPRINTF(E_DBG, L_SCAN, "Item '%s' added to playlist (id = %d)\n", dbmfi.path, pl_id);
|
DPRINTF(E_DBG, L_SCAN, "Item '%s' added to playlist (id = %d)\n", dbmfi.path, pl_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strncasecmp(virtual_path, "/http://", strlen("/http://")) == 0)
|
else if (strncasecmp(virtual_path, "/http://", strlen("/http://")) == 0 || strncasecmp(virtual_path, "/https://", strlen("/https://")) == 0)
|
||||||
{
|
{
|
||||||
path = (virtual_path + 1);
|
path = (virtual_path + 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user