Re: idleStreams
AF1 <AF1.ath2xz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Sun, 6 Nov 2022 14:35:51 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > Sometimes it is helpful to describe the thing you'd like to do, rather > than ask for a specific solution. I don't understand yet, why this > process couldn't be part of the scanner. And why it is that heavy. Users of -Dynamic Playlists 3- asked me if they could use a dynamic playlist (definition) to create a static, i.e. normal playlist (file). Basically instead of continuously adding limited batches of tracks (max. 50) to a client's playlist for -playback-, you'd create a static playlist with them (and a much higher track limit). More testing (exec times) shows that the exec times are more or less what I should expect considering the SQLite track limit (4000), the size of my (artificially upscaled) library (500.000), and the performance of my 10+ year old hardware. So 4000 out of 500000 using the '*-Songs - random- dynamic playlist SQLite code*' (https://github.com/AF-1/lms-dynamicplaylists/blob/main/DynamicPlaylists3/Playlists/songs/songs_01_random.sql) => ~32 secs. I got ~2 mins exec time when I split those 4000 into chunks of 200 (= multiple SQLite queries). Sorry for the confusion. I've uploaded the latest (unfinished) code to '*GitHub*' (https://github.com/AF-1/lms-dynamicplaylists/blob/main/DynamicPlaylists3/Plugin.pm#L1190) that contains the '*function*' (https://github.com/AF-1/lms-dynamicplaylists/blob/main/DynamicPlaylists3/Plugin.pm#L1190) to save dynamic playlist (definitions) as static playlists. In case you want to test it with the dynamic playlist -Songs - random- mentioned above, I've only added the -Save as static playlist- option to the LMS default skin so far (--> the antique floppy disk icon next to the name of the dynamic playlist). The code includes *info* log messages to measure exec times. I've browsed the code of other plugins with scanner/importer code. What plugins like iTunes, fulltextsearch or even my own RatingsLight... put in their importers actually makes sense in the scanner context because they import stuff into the db or modify db contents. My function is just about creating a static playlist (file). If you think it makes sense to use an importer for that, I probably need some pointers on how to implement this, for starters how to start this importer if nobody has requested a regular rescan. Thanks. P.S. Do you know how to get the nice input slider (*sliderinput*) (for numeric input values in the settings UI) in the main/player UI (LMS default skin)? For '*bug reports*' (https://github.com/AF-1/), *FAQ* (if available) and more detailed information about my plugins, please see the '*GitHub*' (https://github.com/AF-1/) page or the *first post* in the support thread for a plugin. Please post *bug reports* for my plugins *only* on '*GitHub*' (https://github.com/AF-1/). Thank you. ------------------------------------------------------------------------ AF1's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=117004