Ok, I think I've made some progress on this.

I've created a library, and in the callback for that library, I iterated
over every track in the tracks table, checking if a file exists in the
directory for each track. If I find the file, I add the track id and
library id to the library_track table.

However, I'm finding that once I've done this, my callback is never
called again. I presume it's because the scanner logic is deciding that
it doesn't need to rebuild my library, as no changes have been detected
during the scan.

Is this the case? If so, is there any way I can force the callback to be
called again, as obviously the files that indicate whether an album
should be part of the library could change at any time. I'd be happy for
this to only happen if a scan is triggered by the user, but that doesn't
seem to be happening. Anything I can do about this?

Thanks

Andy


------------------------------------------------------------------------
adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=105551

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to