From 360e7213e6c344d1244aab71229549e358563d67 Mon Sep 17 00:00:00 2001 From: m42i Date: Thu, 29 Jan 2015 21:07:52 +0100 Subject: [PATCH] Fix filepath matching for iTunes library import --- src/filescanner_itunes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filescanner_itunes.c b/src/filescanner_itunes.c index 174dfd6f..922e17be 100644 --- a/src/filescanner_itunes.c +++ b/src/filescanner_itunes.c @@ -281,10 +281,10 @@ find_track_file(char *location) return 0; } - plen = strlen("file://localhost/"); + plen = strlen("file://"); /* Not a local file ... */ - if (strncmp(location, "file://localhost/", plen) != 0) + if (strncmp(location, "file://", plen) != 0) return 0; /* Now search for the library item where the path has closest match to playlist item */