afriend wrote: 
> 
> One more thing: there's an optional url parameter: "will be a link in
> the web interface which the user can click on to get to the settings for
> the playlist." 
> I thought I could use this to include a short description (html text) of
> each playlist when people click on the name of the playlist in DPL. But
> somehow URLs like -plugins/RatingsLight/rated.html- always return 404.
> I've tried a bunch of URL variations (up and down the folder hierarchy)
> but I must be missing the correct one. Do you happen to know the correct
> one?
> 
If your structure looks like your github repo you should probably also
have html in the path, like: -plugins/RatingsLight/html/rated.html- 
Don’t remember if you also need to call
Slim::Web::Pages->addPageFunction in the webPages function for the page
for it to be exposed.

afriend wrote: 
> 
> BTW about the scanner/locked db problem: I've been rescanning my library
> over and over again (wipecache and standard) and setting/displaying
> ratings. There are almost always errors involving the locked db.
> Sometimes not even the indispensable $track->url is possible when the db
> is locked. Maybe Trackstat didn't have that exact problem because it had
> its own database. 
> So to avoid unnessary errors and prevent users from thinking they have
> successfully rated a song when they haven't I think I might disable
> setting ratings until a scan is done and in the meantime display a
> message where needed. 
> I hope this won't come across as too harsh. I feel it's safer. Since
> RatingsLight has about 2 users hopefully not that many people will be
> rating songs with RL during a LMS scan and then be terribly outraged.
> :-)
Are you saying it doesn’t even work to read the database during scanning
? Feels strange...
TrackStat writes ratings to both its own tables and the standard tables
so that shouldn’t be a difference.

However, disabling ratings during scanning sounds like a good
compromise, it’s safe and easy to handle. It’s different for TrackStat
since it also sets play count an last played time when playing music and
have an automatic rating feature so I need to handle it since it would
be reasonably likely that people play music during scanning.



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=113344

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

Reply via email to