Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all articles
Browse latest Browse all 5300

Sublibrary is not being filled

$
0
0
>>> insert or ignore into library_track (library, track)
>>> select '%s', tracks.id
>>> from tracks
>>> where tracks.url like '%home%';


Looking at this again, I think the problem is the percent character: the
library code does use sprintf to replace placeholders. Such placeholders
start with a %. Thus most likely your SQL would result in something like
"where tracks.url like 'ome';" or similar - which would fail.

Use "where tracks.url like '%%home%%';" instead. This would tell sprintf
to return the literal % (http://perldoc.perl.org/functions/sprintf.html).

--

Michael

Viewing all articles
Browse latest Browse all 5300

Trending Articles