mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
Remove url encoding in filescanner_icy
This commit is contained in:
parent
47c61454b6
commit
fc44eeb80f
@ -72,9 +72,6 @@ struct icy_ctx
|
|||||||
static void
|
static void
|
||||||
free_icy(struct icy_ctx *ctx)
|
free_icy(struct icy_ctx *ctx)
|
||||||
{
|
{
|
||||||
if (ctx->url)
|
|
||||||
free(ctx->url);
|
|
||||||
|
|
||||||
if (ctx)
|
if (ctx)
|
||||||
free(ctx);
|
free(ctx);
|
||||||
}
|
}
|
||||||
@ -170,7 +167,7 @@ scan_metadata_icy(char *url, struct media_file_info *mfi)
|
|||||||
}
|
}
|
||||||
memset(ctx, 0, sizeof(struct icy_ctx));
|
memset(ctx, 0, sizeof(struct icy_ctx));
|
||||||
|
|
||||||
ctx->url = evhttp_encode_uri(url);
|
ctx->url = url;
|
||||||
|
|
||||||
/* TODO https */
|
/* TODO https */
|
||||||
av_url_split(NULL, 0, NULL, 0, ctx->hostname, sizeof(ctx->hostname), &ctx->port, ctx->path, sizeof(ctx->path), ctx->url);
|
av_url_split(NULL, 0, NULL, 0, ctx->hostname, sizeof(ctx->hostname), &ctx->port, ctx->path, sizeof(ctx->path), ctx->url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user