mherger wrote: > LMS uses Slim::Schema->objectForUrl all over the place. I'd certainly > expect it to work. Maybe logging with database.sql could tell us more. > But that's super noisy... >
Im only able to read the code via an iPad at the moment so forgive me if Im on the wrong track here. objectForUrl will internally call Slim::Schema->_retrieveTrack only passing the url parameter at line 820: https://github.com/Logitech/slimserver/blob/e64c0e31caf4ebd7a77ce480db3395e35d33bd6e/Slim/Schema.pm#L820 Since integrateRemote is not passed it will result in a call to Slim::Schema::RemoteTrack->fetch at line 2295: https://github.com/Logitech/slimserver/blob/e64c0e31caf4ebd7a77ce480db3395e35d33bd6e/Slim/Schema.pm#L2295 RemoteTrack->fetch only seems to return items from its cache: https://github.com/Logitech/slimserver/blob/e64c0e31caf4ebd7a77ce480db3395e35d33bd6e/Slim/Schema/RemoteTrack.pm#L398 Could it be that the track isnt in the cache and it just returns undef? And in other places where objectForUrl is used the RemoteTrack might be in the cache or objectForUrl is passed a blessed object instead of an url string so the call exist before calling _retrieveTrack ? Or should objectForUrl pass an integrateRemote parameter when calling _retrieveTrack at line 820 ? As initially said, Im only reading this via an iPad and have no possibility to actually run 8.1 myself at the moment so I might easily have lost myself when reading the code :-) Erland Isaksson ('My homepage' (http://erland.isaksson.info)) Developer of 'many plugins/applets' (https://wiki.slimdevices.com/index.php/User_Erland.html) *Starting with LMS 8.0 I no longer support my plugins/applets* ('see here for more information' (https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins&p=998836&viewfull=1#post998836) ) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=49483
_______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
