Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer
Hey. I thought I'd catch up with your latest changes and tried the latest GitHub version of server and plugin. Update all python modules and installed 2 new ones. I don't use Essentia and the only Essentia-related item in the config.json has always been Code: "essentia":{ "enabled":false }, Creating a similarity mix gives me > E Exception on /api/similar [POST] > Traceback (most recent call last): > File > "/Users/af/lmsmusly-pyenv/lib/python3.9/site-packages/flask/app.py", > line 2073, in wsgi_app > response = self.full_dispatch_request() > File > "/Users/af/lmsmusly-pyenv/lib/python3.9/site-packages/flask/app.py", > line 1518, in full_dispatch_request > rv = self.handle_user_exception(e) > File > "/Users/af/lmsmusly-pyenv/lib/python3.9/site-packages/flask/app.py", > line 1516, in full_dispatch_request > rv = self.dispatch_request() > File > "/Users/af/lmsmusly-pyenv/lib/python3.9/site-packages/flask/app.py", > line 1502, in dispatch_request > return > self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) > File > "/Users/af/Music/MusicSimilaritySERVER/music-similarity-master/lib/app.py", > line 444, in similar_api > ess_cfg = get_essentia_cfg(cfg, params) > File > "/Users/af/Music/MusicSimilaritySERVER/music-similarity-master/lib/app.py", > line 241, in get_essentia_cfg > ess_cfg={'enabled': config['essentia']['enabled'], 'highlevel': > config['essentia']['highlevel']} > KeyError: 'highlevel' Since it mentions essentia (although my config should disable it) I have to ask: is it no longer possible to use MusicSimilarity just with Musly? *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115609 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
PasTim wrote: > MY dynamic playlists already have extension .sql.xml, so I don't > understand what you are asking me to do. Ok then. I thought you were using SQLPlayList to get your custom dynamic playlists into DPL - which is no longer necessary/recommended with DPL*3*. What I described was how to use your custom dyn. playlists with DPL3 *without* SQLPlayList. More detailled information on the relation between DPL and SQLPlayList, and on how to create/import your custom dyn. playlists into DPL3 can be found in the FAQ. PasTim wrote: > By the way, what do [B] etc mean? ?? Are you talking about the styling tags in this forum (B = bold)? PasTim wrote: > All my Dynamic playlists are random, so I guess I stay with > PlaylistLimitOption:unlimited Misunderstanding. Take your first example -Random Classical Top Rated Works-. You pick a random -work- with rating 80+ but *then* you do want to play this work's movements in *non*-random order, no? That's what the *PlaylistTrackOrder* parameter is for because DPL3 adds extra randomness/shuffling to tracks *unless* you use this line. It's just a way to disable this extra shuffling. As for Multilibraries, what you posted was the -.sql.values.xml- content, just the values that ML parses to create valid SQLite queries. But that's ok. How many Multilibraries do you have? And can you describe the criteria you use to create your Mulltilibraries? Are they basically supposed to filter by genre (Classical or Non-Classical)? I'd be especially interested in your *more complex* Multilibraries. BTW you can see the actual SQLite code of each library in the Multilibraries web UI if you edit them and then at the bottom choose *Customize SQL*, then click *Next*. There you can see/copy the actual SQLite code. But *don't click save afterwards*. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
dunq wrote: > What are the criteria for a track being added to the "recently rated" > playlist? The first creation of the playlist happened fine (i.e. visible > in the LMS player interface), in that I changed a track's rating and the > playlist appeared. However, the playlist has not updated since then. So > I'm wondering: > > * is every rating change in the player interface (add new/changed > existing) noticed? > * when should an update to the playlist be triggered? > * when should the log file be written if "Log changed ratings" is ticked > in settings? -Changed- rating means: new/first-time rating, changed rating value, unrating (0). In general, every time you change a track's rating *with -Ratings Light-* (web interface, jivelite, CLI...) the track is added to the playlist and/or the log file if you've enabled that in the settings. Both are meant to help you keep track of your rating *actions*, i.e. the tracks whose rating you've changed. They're not a list all of your rated tracks. Personally I use the log file because it is has more (precise) information and I don't need another playlist. The playlist keeps a record of all tracks with -changed- ratings *but* - it will *not add* a track *twice* (ex.: new rating = 40, then rating = 0 ---> track will only show up *only once* in the -playlist- because the playlist shows all tracks whose ratings changed) - and if you *unrate* a track (rating = 0) it will *not* delete this track from the playlist because unrating is a rating change too. Playlist and log file work without any problems here. If you want to keep detailled track of your rating actions I suggest you use the log file. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
PasTim wrote: > I'm struggling with the complexity of the FAQs. There are so many > features I've never heard of, and some terms that evade me, but I'll > try. I'm quite confident that you will succeed. Don't worry too much about terms and new features. At the core DPL is still just a means to serve you those tracks that you select with your SQLite code/dynamic playlist. Try this: save the SQLite code of your dynamic playlists (just like the examples you posted here) as plain text files, change the file extension to *.sql.xml* and move these files to -DPL's folder for custom dynamic playlists- called *DPL-custom-lists* (default location of that folder: in your LMS playlist folder). Uninstall DPL*2* and install DPL*3*. Maybe uninstall SQLPlayList for the time being. Your custom dynamic playlists should show up now. Your SQLPlayLists playlists and DPL2 preferences will still be there when you uninstall DPL3 and reinstall DPL2 and SQLPlayList. If you want unlimited tracks and *non-random* order replace *-- PlaylistOption Unlimited:1* (from your first example) with these 2 lines: Code: -- PlaylistLimitOption:unlimited -- PlaylistTrackOrder:ordered Can you post the SQLite code of your *MultiLibraries* from the MultiLibraries plugin? (not the dynamic playlists) The more the better. That would give me a better idea of whether and how your MultiLibraries can be recreated as virtual libraries. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
PasTim wrote: > I don't understand what is meant by 'removes ties to other (unsupported) > plugins'. I see that it says that it may work with such plugins, but > I'm not sure what it means by 'ties'. I removed code in DPL3 that was specifically aimed at unsupported plugins - for all the reasons and with all the consquences (e.g. no support) explained in the FAQ. But as long as your SQLite code is valid and the tables you need exists/work there's a good chance it might work with DPL3. DPL3 and DPL2 have different names and preference files so you could temporarily uninstall DPL2 and install DPL3 to test it. Just make sure you read the FAQ parts on -SQLPlayList- too. In your example above --- PlaylistOption Unlimited:1- won't have any effect with DPL*3*. It's --- PlaylistLimitOption:unlimited- (see DPL3 wiki on DPL playlist format). PasTim wrote: > I did look at the Virtual Libraries but I failed to understand how I > could get it to work in a similar way to multilibrary. Just out of curiosity: Can you post the code of some of your dynamic playlists (preferably in CODE tags) that involve the -MultiLibrary- plugin? If there's a chance to replace this plugin with native virtual libraries you'd have one less plugin to worry about and make your setup a bit more 'future-proof'. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
dunq wrote: > I've been trying to export data from Ratings Light using both the backup > option and the "recently rated playlist" option. In both cases, the > server log shows, e.g.: > > > > Exporting from TrackStat does not cause a problem (well, it's writing to > a file already created), owner being myusername:myusername > > Saving a playlist from the player interface, the created file has > owner/permissions squeezeboxserver:nogroup 0644 > > I don't know enough about ownership/permissions to understand what to > reliably tweak to make it possible for Ratings Light to write to the > directory (ownership is myusername:users). Any help appreciated. I can only test my plugin on macOS and maybe Linux Debian but this is actually the first I've heard of such behavior. Since I don't know what OS and LMS/plugin version you're using I can only guess but permissions seem a likely cause. If LMS works it always has read/write permissions to the folder you selected as your LMS playlist folder. Once installed Ratings Light - in order to avoid clutter - creates a folder in that playlist folder called -RatingsLight- where it stores everything: backups, exported playlists, logs... Creating the folder and changing into it requires 755 permissions. Please check if that folder exists (unless you moved it elsewhere in the RL settings) and if LMS/squeezeboxserver has 755 permissions for that folder. Permissions for files in that folder are 644 as usual. Another thing you could do is to *temporarily* set the -debug level- of the Ratings Light plugin to -debug- (settings > logging). And then try to create a backup or export something. Just don't forget to set it back to -warn- or -error- afterwards or your log will grow very large. Then check the server log for permissions related messages. Good luck. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
guptaas wrote: > Thank you for providing a very useful tool. I have been looking for a > way to use exported ratings in a Windows tagging program like MP3Tag or > Mediamonkey for a long time. The exported text files,however, have UNIX > paths which these programs cannot handle. Playlists saved from LMS > running on windows work fine. Is it possible to have the plugin follow > the filepath convention being used by LMS itself or have an export > setting for UNIX/Windows in the plugin? > As an alternative, any suggestion for an easy m3u converter would be > great. As a last resort, maybe I can create a macro in MS Word. The EXTURL in m3u playlists should start with -file:///-, even on Windows I think. The (other) file path below is OS specific I think. I've made some adjustements but I can't test them on Windows (no Windows PC or license). So please download and -manually- install the latest GitHub version (2.0.9) (instructions on the GitHub page) and test the *export* and *backup/restore* features. BTW I wouldn't use Word macros. In my experience such programs often add their own control characters which you don't want in playlist files. If you really needed some kind of automated file path rewriting you could try a script (if that's a thing on Windows) or some plain text editor with a regex capable search/replace function. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
AndyTwizzle wrote: > I'm affraid I don't know how to manually install a plugin. Am using LMS > 8.1 on a Synology Diskstation in a Docker container, so not sure how > complicated that may be? No problem. When I find the time I'll do some more testing or maybe somebody else will... So no ETA but soonish. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
AndyTwizzle wrote: > Not sure if this is the appropriate thread to request changes to Dynamic > Playlists. If not, apologies - and can someone advise me on where/how to > make a change request please? > > In Logitech Media Server's web interface (and also the Squeeze Ctrl > Android app), the list of my Static Playlists and Favourites appears in > a jumbled, seemingly random order - making it hard to quickly locate the > one I'm after. I think the other playlist options > (Artists/Songs/Albums, etc.) also don't appear in alphabetical order. > I've included a couple of screenshots to illustrate. > > Can I request that in the next plugin update, this is changed to > alphabetical please? > > Thanks > > Andy Hi Andy. Thanks for bringing this to my attention. I could have sworn I had some alphabetical sorting (probably in some unreleased version though). It went undetected for so long because I don't use static playlists with DPL3 at all. In general dynamic playlists will always be listed in this order: 1. built-in 2. custom/user-provided 3. provided by other plugins. Within the last 2 groups they should be listed in alphabetical order. *Built-in* dynamic playlists are listed in a '*content-based*' order created by me. For example, I try to group dynamic playlists together that are about ratings, play count or genre/decade selection. This is unlikely to change. Don't forget you can always put your custom -dynamic- playlists in a custom playlist group just by adding the corresponding parameter (see wiki). Static playlists will be ordered alphabetically. I'll update the FAQ. So I've made some changes and uploaded them to the GitHub repo. If you know how to install the latest GitHub version of this plugin (manually) I'd appreciate you taking a look. Thanks. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
nyindieguy wrote: > With the "multiple genres/select decade" playlist, it selected only 9 > songs in spite of there being hundreds that would have qualified. All of > the 9 songs were from 1960, in spite of having selected that entire > decade of the '60s. When I tried a second time, the exact same 8 songs > came up. There was a line I forgot to delete. Fixed. nyindieguy wrote: > With the "multiple genres/select year" playlist, the songs seemed like > they were correct, though not as shuffled as I might have wanted, but > ended after several hours of play, when there should have been enough > songs to last all day. The big tipoff was no Beatles included when Rock > and Roll was one of the selected genres and 1967 was the selected year. I recreated this as best I could. A static playlist with about 1500 tracks incl. all Beatles tracks I could find. Then I called the DPL context playlist from above (with year=1967 and the genres of the tracks in the static playlist) - and no problem, 1967, Beatles and all. Reasonably shuffled as well - though if the source is a playlist with albums (compared to your entire library) I would expect groups of tracks from the same album to show up. P.S. Your posts are easier to read if you don't quote/repost the entire playlist code :-) *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
nyindieguy wrote: > *context menu* that uses an existing static playlist and allows me to > choose a subset of that playlist that chooses multiple genres and/or a > year. With *year* you'll have to choose a year. Not optional. Code: -- PlaylistName:Songs - multiple genres & year (from selected playlist) -- PlaylistGroups: -- PlaylistMenuListType:contextmenu -- PlaylistParameter1:playlist:Select playlist: -- PlaylistParameter2:multiplegenres:Select genres: -- PlaylistParameter3:year:Select year: select distinct playlist_track.track from playlist_track join tracks on tracks.url = playlist_track.track join genre_track on genre_track.track = tracks.id and genre_track.genre in ('PlaylistParameter2') left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where playlist_track.playlist='PlaylistParameter1' and tracks.year='PlaylistParameter3' and tracks.audio = 1 and tracks.secs >= 'PlaylistTrackMinDuration' and dynamicplaylist_history.id is null group by playlist_track.track order by random() limit 'PlaylistLimit'; With *decades* it's optional (select -any-). Code: -- PlaylistName:Songs - multiple genres & decade (from selected playlist) -- PlaylistGroups: -- PlaylistMenuListType:contextmenu -- PlaylistParameter1:playlist:Select playlist: -- PlaylistParameter2:multiplegenres:Select genres: -- PlaylistParameter3:customdecadechained:Select decade:select cast(((ifnull(tracks.year,0)/10)*10) as int),case when tracks.year>0 then cast(((tracks.year/10)*10) as int)||'s' else 'Unknown' end from tracks where tracks.audio=1 group by cast(((ifnull(tracks.year,0)/10)*10) as int) order by tracks.year desc select distinct playlist_track.track from playlist_track join tracks on tracks.url = playlist_track.track join genre_track on genre_track.track = tracks.id and genre_track.genre in ('PlaylistParameter2') left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where playlist_track.playlist='PlaylistParameter1' and tracks.year='PlaylistParameter3' and tracks.audio = 1 and tracks.secs >= 'PlaylistTrackMinDuration' and dynamicplaylist_history.id is null and case when 'PlaylistParameter3'!=9 then tracks.year>='PlaylistParameter3' and tracks.year<('PlaylistParameter3'+10) else 1 end group by playlist_track.track order by random() limit 'PlaylistLimit'; *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > I see that a new update was uploaded today. Can we hear more about what > was changed/fixed First place to check would be the '*GitHub release feed*' (https://github.com/AF-1/lms-dynamicplaylists/releases). 3.4 comes with some new features: - select *multiple genres*: the -Songs- group has some built-in dynamic playlists that already use this parameter. - Save *dynamic playlists -with user input- as LMS favorites*: using the LMS *Default* or *Classic* skin you can now save dynamic playlists that request user input as LMS favorites. - *Preselect artists/albums* for later use: preselect artists/albums from the context menu and use them later with any dynamic playlist that includes the corresponding playlist parameter. The *Song* group includes some examples. *Please check FAQ / wiki for more details.* *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
bernt wrote: > Another one. I want tracks from a specific album mixed with tracks from > a specific genre. > > I'm trying to learn SQL but I'm a slow learner, sorry! > > > Code: > > -- PlaylistName:Random from mixer > -- PlaylistGroups: > select tracks.url from tracks > left join dynamicplaylist_history on > tracks.id=dynamicplaylist_history.id and dynamicplaylist_history.client='PlaylistPlayer' > join albums on > tracks.album=albums.id and > albums.title='Absolute Music 88' > > join genre_track on > tracks.id=genre_track.track > join genres on > genres.id=genre_track.genre and > genres.name='Hits' > > > where > tracks.audio=1 > and dynamicplaylist_history.id is null > group by tracks.id > order by random() > limit 10; > > > I've started a '*separate thread dedicated to helping users with their custom dynamic playlists*' (https://forums.slimdevices.com/showthread.php?115501-Dynamic-Playlists-3-get-help-with-your-custom-playlists). *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] Dynamic Playlists 3 - get help with your custom playlists
THIS THREAD IS *EXCLUSIVELY* DEDICATED TO PROVIDING *HELP* WITH SQLITE STATEMENTS FOR USERS WHO WANT TO *CREATE* THEIR OWN *(CUSTOM) DYNAMIC PLAYLISTS*. OF COURSE, YOU CAN ALSO POST YOUR -WORKING- CUSTOM DYNAMIC PLAYLISTS HERE FOR OTHERS TO USE OR AS A SOURCE OF INSPIRATION. SO NOBODY HAS TO REINVENT TO WHEEL. ::Before posting I recommend you take a look at the '*dynamic playlists*' (https://github.com/AF-1/lms-dynamicplaylists/tree/main/DynamicPlaylists3/Playlists) (incl. context menu playlists) that come with the plugin. They are a good starting point and may help you understand how SQLite works. And please read the '*wiki on the DPL playlist format*' (https://github.com/AF-1/lms-dynamicplaylists/wiki/DPL-playlist-format) and the '*FAQ*' (https://github.com/AF-1/lms-dynamicplaylists#faq).:: Once you have a working SQLite statement, all you need to do is - open a -plain text- editor of your choice (e.g. -Notepad- on Windows or -BBEdit- on macOS) - paste the dynamic playlist definition (incl. your SQLite statement) - save the file with a *sql.xml* file extension (instead of txt). Example: mycustomplaylistname*.sql.xml* - move this file to the folder for custom playlists called "*DPL-custom-lists*" in the LMS playlists folder (unless you changed its location). Now your dynamic playlist should be listed in the playlist group you chose/created or in the -Not classified- group if it doesn't belong to any group. Very easy. So the challenging part is figuring out the SQLite statement. And that's what this thread is for. I can't promise that I'll have time to answer your requests. Fortunately, there are other users who I know will help you as well. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115501 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
mamema wrote: > so, i have made more tests, the plugin is immune against library > updates, without delete and complete rescan. But if i do a delete/full > scan manually and an "nightly change update" automatically afterwards, > LMS hangs up and need to be restarted, which then leads to a rescan at > boot time. > > solution is, and i dunno why, to let the rescan finish. Disable the > plugin. Restart, enable the plugin. > > Huh, weird... Don't know what's going on there. Just in case it should be related in any way to UCTI's (re)building virtual libraries after a restart I've included a check for missing library or active scanning process that should delay this until the rescan is done. Please try version 1.3.6 (not released, GitHub manual install only). Can't think of anything else right now that I can do on the plugin side. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
bernt wrote: > Hi! > > After a few hours of trail end error I reliased that I need help. I want > a one click random playlist from a specific genre. > > Here is a wild guess... You want the track urls so you start with the tracks table. If you used DPL to select the genre (user input parameter) then DPL would look up the genre ID and therefore all the (built-in) dynamic playlist use the genre_track table (which only matches genre IDs and track IDs). Since you want to use the genre name you'll also need the genre table with the names. No guarantees - here's my version: Code: -- PlaylistName:Jazz-Pop -- PlaylistGroups:Soft -- PlaylistCategory:songs select distinct tracks.url from tracks join genre_track on tracks.id = genre_track.track join genres on genre_track.genre = genres.id and genres.name like '%%Jazz%%' left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.audio = 1 and tracks.secs >= 'PlaylistTrackMinDuration' and dynamicplaylist_history.id is null group by tracks.id order by random() limit 'PlaylistLimit'; *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
Philip Meyer wrote: > https://github.com/AF-1/lms-dynamicplaylists/blob/main/public.xml ? No, I meant *manual* install of the latest GitHub version for *testing* purposes (see GitHub page for instructions). It might not be 100% bug-free or stable but it includes all commits. Philip Meyer wrote: > I thought I read that it was necessary to uninstall DynamicPlaylist > plugin, but for testing if I could get my plugin to work with either > Erlands plugin or your updated version, is it safe to both installed? Users don't/shouldn't have more than one instance of DPL installed. For testing purposes, you could try but I don't recommend it. Not only because CLI commands, protocol handlers and such have identical names (to maintain backwards compatibility) but you might run into other unexpected problems and waste time researching/solving them. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
Philip Meyer wrote: > I was the author of a plugin called DynamicMix that used Dynamic > Playlists to play random music, selecting the next track using MusicIP. > I haven't looked at this new version of Dynamic Playlists yet - is this > likely to work without changes? I've only had time to take a quick look but I think you'd have to change the plugin name in your -isDynamicPlaylistActive- function from -DynamicPlayList- to -DynamicPlaylists3- or check for both versions. For testing please use the GitHub repo version. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
Do you have some plugin or script that -*automatically*- triggers a database rescan (clear/wipe or only looking for new media?) after *every* LMS restart? If so, why? I only rescan my library (clear/wipe) after I've added new tracks or if the filename of the existing ones has changed. So in short: not very often at all. When LMS restarts there are always some plugins that need to interact with the database when they're initializing and if the database is not available (rescan) there might be problems. So I usually trigger the rescan -manually- and certainly *never* together with a LMS restart. Just take a look at everything automated/scheduled. The usual way to get to the bottom of this would be to disable all plugins (or at least all those that interact with the database and might (b)lock it) and then reenable one by one. It seems that you certainy have a lot more plugins installed/enabled than I have. BTW how many browse menus/virtual libraries, title formats and such do you have defined/enabled in UCTI? *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Is there any chance I get get access to the prior versions of your > plugins before the name change? Unless you know how to manually install old GitHub commit versions, no. BTW I think the DPL error you mentioned is irrelevant. It just used to display the currently playing dynamic playlist there. Doesn't seem to affect any of SQLPlayList's main features: helping you create dynamic playlists if you don't want to/know how to write SQLite code and making these dynamic playlists available to DPL3. CustomSkip is a different matter. Please read the CustomSkip FAQ again. I've added a paragraph to address this problem. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
mamema wrote: > something isn't right. > as i've activated this plugin without doing other changes, since weeks, > i would say my problem seems to be this plugin. > > i have this in the logs: > > > [21-11-15 06:53:16.6351] Slim::Plugin::Extensions::Plugin::_noResponse > (476) error fetching https://www.nexus0.net/pub/sw/lmsannounce/repo.xml > - Connect timed out: Transport endpoint is not connected > > [21-11-15 06:53:38.1918] Slim::Networking::IO::Select::__ANON__ (130) > Error: Select task failed calling Slim::Web::HTTP::processHTTP: > DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::db > prepare_cached failed: attempt to fetch on inactive database handle at > /lms/Slim/Music/Import.pm line 746 > > ; fh=Slim::Web::HTTP::ClientConn=GLOB(0x55bd25d473d0) > > [21-11-15 06:53:45.3226] Slim::Control::Request::execute (1888) Error: > While trying to run function coderef > [Slim::Control::Queries::serverstatusQuery]: > [DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::db > prepare_cached failed: attempt to fetch on inactive database handle at > /lms/Slim/Music/Import.pm line 746 > > > and LMS isn't responive at all. > > i've get this every morning, so i guess it has something to do with the > nightly update scan. > I must say, that i have a quite large library 85.000 files. > After restarting LMS, a db scan is triggered and after the scan LMS is > working again. And you don't get any of these messages anymore if you disable this plugin (UCTI)? Without knowing more it's hard to say. The first message seems to be a networking problem ("Connect timed out"...) which may be related to the unreponsiveness but probably not to UCTI. The importer related messages are simply saying: some plugin like UCTI is asking the server if there's an active scanning process but the server can't get this information at the moment because the "database handle" is "inactive". That happens if you restart and immediately trigger a rescan (with the help of some plugin or script), and maybe did a database wipe before. UCTI only asks for this information (stillscanning) when it registers title formats or displays track information (song details page). So please check the (*timestamps* of the) log messages *_before_* you restart LMS (with the auto-rescan). And then do your restart/rescan and check the log messages and their timestamp again. Do the importer related messages only show up *after* the restart/rescan? Do you have a plugin/script enabled that triggers a rescan after *every* restart? (Plugin updates requires restarts as well.) Considering that other UCTI users have enabled auto-updating too and haven't reported such a behavior (unresponsive) I'm not convinced that UCTI on its own should have such a terrible effect on your LMS. And I haven't been able to reproduce this so far either. *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > I just followed the directions to transition to the new (and properly > named) versions of DPL and Custom Skip. I'm having two issues that I > can't seem to fix. > > 1. When I click on SQL Playlist, I get the following error: "ERROR!!! > Cannot find DynamicPlayList plugin, please make sure you have installed > and enabled at least DynamicPlayList 1.3" > > 2. If I look at my custom playlists, either in SQL PLaylist or in DPL 3, > there is no longer the dropdown box for Custom Skip. > > Did I do something wrong? No, you didn't. What you are witnessing are some effects of the DPL3/CS3 renaming on the SQLPlayList plugin. The SQLPlayList plugin code expects the old names - which will obviously never come back. That's why I try to minimize or avoid ties between plugins. Thank you for letting me know. I'll revise the FAQ notes on SQLPlayList compatibility in the next days. BTW the dropdown menu only ever existed in SQLPlayList but you probably called SQLPlayList from DPL with the -edit- button (which just redirects you to the SQLPlayList plugin). This redirect has probably led some users to believe that DPL is involved in *creating* dynamic playlists. But it -never- has been and -never will-, it just -plays- them. Unless somebody else starts maintaining the SQPlayList plugin and makes/keeps it compatible with DPL3 & CS3 this dropdown menu is gone. The good news is that you can still make DPL use CustomSkip filter sets by adding a playlist parameter to the SQLite code. Save your playlist in SQPlayList as -Customized SQL- and on the next screen *before* the sqlite statement itself, where the playlist parameters are (starting with --), add the playlist parameter for your customskip filter set as explained in the '*DPL wiki*' (https://github.com/AF-1/lms-dynamicplaylists/wiki/DPL-playlist-format#general-parameters) in the paragraph below -Action/CLI parameters-. And, of course, the renaming opened up the possibility of sticking with the old versions (2.x). If you need CustomSkip2 you'd have to make a pull request to the LMS repo ('see Erland's post' (https://forums.slimdevices.com/showthread.php?115073-Announce-Dynamic-Playlists-3-(mod)=1037619=1#post1037619)). *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
w3wilkes wrote: > AF, any possibility of allowing us to rename "Not classified" in DPL3 to > "SQLPlaylists" so I can tell my wife where her playlists went? Thanks. -Not classified- in the DPL (home) menu is just a catch-all for all dynamic playlists *without* the --- PlaylistGroups- parameter = all custom dynamic playlists that are not assigned to any playlist group. *You can create custom groups for own playlists*, doesn't matter if you use SQLPlayList to -create- custom playlists or if you write the SQLite code of your dynamic playlists yourself. So if you enter a group name in the "groups" field in SQLPlayList it will add the --- PlaylistGroups- parameter to your SQLite code and your dynamic playlist will be placed in a group folder with that name. More information about playlist parameters in the DPL wiki (link on github page). *Plugin repositories:* 'Ratings Light' (https://github.com/AF-1/lms-ratingslight) 'Visual Statistics' (https://github.com/AF-1/lms-visualstatistics) 'Use Comment Tag Info' (https://github.com/AF-1/lms-usecommenttaginfo) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
marco.mosca wrote: > The only issue I see is running SQL Playlist from Favorites menu: these > playlist are working only if launched from the DPL menu. Should work in 3.3.3. -May- require removing playlists from LMS favorites and readding them, as explained in the DPL FAQ. marco.mosca wrote: > Instead of having a drop down list for the genre can you implement a > list of checkbox as in the below picture? This would be great for both > random songs and random albums. In this way is possible to select more > than a genre at the same time. As I said in post#69 I like the idea but this would require some non-trivial code changes. And lots of testing. I don't have the time for that right now. Maybe some time next year. marco.mosca wrote: > Include the Custom Skip as the last choice of the DPL with parameters > (as it was for example in the SQL Playlist). I won't do that. I don't want to reintroduce new ties between plugins, on the contrary. Also, -please really do read the DPL3 FAQ and the CustomSkip3 FAQ- (see signature below). tl;dr: the job of DPL is to *play* dynamic playlists and SQLPlayList's job is and always has been to -assist- users who don't feel comfortable writing SQLite code in *creating* custom dynamic playlists. Whether you create your custom dynamic playlist with the help of SQLPlayList or you write it yourself from scratch... just 2 different ways of *creating* a dynamic playlist that DPL should *play*. So DPL does support setting CustomSkip filters but you just have to tell it to do so in your custom dynamic playlist (no matter if you use SQLPlayList or write the code yourself). Check out the FAQs/wikis for more information. Setting a customskip filter set for a dynamic playlist was always -static.- If you use SQLPlayList it just writes the name of the CustomSkip filter set you want to use into the dynamic playlist definition. It was never a parameter you could/would set when starting a dynamic playlist. marco.mosca wrote: > can you also make Custom Skip V2 available again. I would like to use it > until I can fully embrace DPL and CS V3. I think Erland has explained this very well in this '*post*' (https://forums.slimdevices.com/showthread.php?115073-Announce-Dynamic-Playlists-3-(mod)=1037619=1#post1037619) (on this very page actually). 'Github repos' (https://github.com/AF-1/) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
mamema wrote: > just discovered the beauty of this plugin. I have use cases for it. So > great work. > What i've discovered, is that every custom menu is under "My Custom > Menus". It would be nice if this String is customizable without digging > into the plugin code. > Thanks again for this plugin. Glad you like it. If you're referring to the displayed name of the (home menu) parent folder for the browse menus of your virtual libraries you should be able to change it in the settings (I think I put it in the -extras- section). 'Github repos' (https://github.com/AF-1/) 'Dynamic Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) 'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
RobbH wrote: > I've removed your old repo and added the new one. I've uninstalled the > previous version of DPL3 and re-installed from the new repo. I then had > both DPL2 and DPL3 installed, and two Dynamic Playlists entries under My > Music. Uninstalled DPL2 and everything appears to be back to normal, but > it hasn't really been tested yet. > > I also do not see the old Custom Skip, which I have never used, in the > Unsupported Plugins list, or anywhere else. DPL2 also did not appear in > that list at first, but it's now there again. Your Custom Skip shows up > in the right place. Actually I think I phrased that last part about coexisting in a misleading way (edited my post now). It was about making sure that these new versions 3 (with the different name) wouldn't block the listing of the previous versions 2 in the "unsupported extensions" section. Thanks for confirming that for DPL v2. And at least I know the missing CustomSkip2 is not related to CustomSkip v3. So that's something. Thanks. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
erland wrote: > keeps his plugin in the main repo to make it easy to install for people > that wants a supported version and if he wants to make it easy for > people to install my unsupported version changing the plugin name to > DynamicPlayList3 in repo will probably probably allow that Hej. Thank you for your opinion. The voice of reason always has a nice ring to it. Download counts suggest that apparently once DPLv3 is removed from the LMS main repo future versions would only reach a small fraction of all previous DPL v3 users which is kind of sad. Adding external repo urls seems to be a lot less common than I'd hoped. So you're right, it'd probably be better if DPL v3 remained part of the LMS main repo. Therefore I've changed the internal plugin name that LMS uses, both for Dynamic Playlists 3 and Custom Skip 3. But even if I add DPL3 or CS3 to the LMS main repo (again) one thing remains: due to some changes in my life I'll have even less time to spend on LMS plugins. I don't know yet what this will mean for these plugins (and others) but we'll see. That was actually the main reason I'd considered removing DPL3 from the main repo. BTW when I did some tests on a *clean* LMS 8.2.1 test system CustomSkip 2.5.83 didn't show up in the list of "unsupported extensions" for me. It's still listed in the main repo xml file though, just didn't show on the settings > plugins page under "unsupported extensions". All of the other plugins did though. Can anybody reproduce this? For testing purposes I've added the versions with the different internal name to this repo https://raw.githubusercontent.com/AF-1/lms-customskip/main/public.xml I did some preliminary tests but maybe users who know their way around github (RobbH et al.) could confirm that they still work as they should and whether the new versions, once installed, peacefully coexist with the old unsupported versions of DPL and CS in the LMS main repo. Take care. Thanks again. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
marco.mosca wrote: > Can you help with this in order to have the Erland plugin available > again? I am not able to make any manual install and I would like to get > back to my previous setup. If you want to install v*2* from the "plugin library" (= LMS main repo) you'll have to wait until I remove v3.2.5 from that "plugin library" for good. As I said, that will happen as soon as daily downloads of 3.2.5 from the "plugin library" have dropped to an insignificant number. If v*3* users with a version < 3.2.5 don't get the 3.2.5 update (with the info message) they may never know about the repo change and they'd be stuck with 3.2.5 forever. Thank you for your understanding and keeping their best interests in mind. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
marco.mosca wrote: > Dear Afriend, I have tried getting back to previous Dynamic Playlist, > however I cannot get Erland plugin. This seams not to be part of the > library anymore even if I uninstall your plugin. How can I reestablish > it? > > Thanks. > Marco Maybe '*this post*' (https://forums.slimdevices.com/showthread.php?115073-Announce-Dynamic-Playlists-3-(mod)=1036674=1#post1036674) answers some of your questions? As a compromise I've already announced that I will pull DPL v*3* from the LMS main repo. The last version in the LMS main repo (v3.2.5) contains a message with information for DPL v*3* users. So, of course, the goal is to have as many DPL v*3* users download 3.2.5 so they will know that DPL v*3* is now available from a different repo. Otherwise, they'd be stuck with 3.2.5. As soon as new daily downloads of 3.2.5 have dropped to an insignificant number I will pull DPL v*3* from the LMS main repo for good. As detailled in the linked post you can wait for that to happen and then install v*2* the usual way - or '*manually install v2*' (https://github.com/AF-1/lms-dynamicplaylists/tree/7283a5f2c591f7ab1c5461fe8dfb3f9c6fb3428c#reverting-to-dynamicplaylist-v2) -now- which should have the added benefit of preventing any future DPL updates. BTW maybe this '*FAQ*' (https://github.com/AF-1/lms-dynamicplaylists#faq) can answer some questions too, like DPL v*3* compatibility with old plugins. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
bernt wrote: > Hi! > > Is there a way to use DPL so that songs in a Spotify playlist always > plays in random order? > > Regards > Bernt DPL can fetch Spotify tracks that are *part of your LMS library* = that have been added to your LMS library as part of an album. LMS does not import single online tracks or tracks of online playlists as *library* tracks. So if you meant a Spotify list of non-library tracks, then no. Otherwise your custom dynamic playlist would probably look like this: Code: -- PlaylistName:Songs - Spotify library tacks random select distinct tracks.url from tracks left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.content_type = 'spt' and tracks.secs >= 'PlaylistTrackMinDuration' and dynamicplaylist_history.id is null order by random() limit 'PlaylistLimit'; '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
rlem wrote: > Hi all, > > For the record: I'm still very happy with DP3 ;-). > Mainly I'm making (ahem, "hacking together", 'with a little help' > (https://www.cameron.willmot.ca/posts/dynamicplaylist/)) my own custom > Dynamic Playlists that should work -without user interaction-, so just > click and play. > I've got things like "Toprated songs added in the past year, and in > genre X, Y, Z" working perfectly. > > The only thing that's not (really) working is *excluding songs that were > played recently* (say: in the last 3 days). > This SQL with Beatles top rated tracks is playing fine (no errors in the > log): > > ...but the > > > Code: > > and ifnull(track_statistics.lastplayed,0)<(STRFTIME("%s",DATE('NOW','-3 DAY'))) > > > > seems to be ignored, because Carry That Weight is queued, but it > shouldn't have been because it was last played yesterday: > > How do other people do this? > > Thanks, > Randy What br@m said. TrackStat's *track_statistics* table and the default LMS *tracks_persistent* table basically contain the some information. So if you're just retrieving -ratings- or stats like -last played, date added- or -playcount- you can simply query *tracks_persistent*. I don't know -how- you use TrackStat but seeing that you seem to have another rating plugin installed (Ratings Light?) you don't necessarily need TrackStat to set ratings or retrieve ratings/stats. The website you linked to probably uses DPL v2. With DPLv3 you can use your custom dynamic playlist definition directly in DPL (without SQLPlayList), just by putting the file in the DPL custom playlist folder. SQLPlayList is still a good way to start creating your custom dynamic playlist but please remember that it can't know '*all DPL v3 playlist parameters*' (https://github.com/AF-1/lms-dynamicplaylists/wiki/DPL-playlist-format#playlist-parameters) because its last version dates from before DPL v3. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
w3wilkes wrote: > I don't have the AF repository specified... Why did I get the update to > 3.2.5. How do I go back to Erlands? I do have Erlands repository > specified. There are other users of DPL v3 who (accidentally?) updated to v3 and who don't quite dislike the new version as much. Readding v3.2.5 with latest fixes and (more importantly) the info message to the LMS main repository for a *limited time* was the only reliable way to make them aware that without adding the new github repo url they won't get future updates. In my experience most users don't spend much time in this forum unless they have to. Most likely many of them would have never noticed that they were cut off from future v3 updates. So as unfortunate as it is for users like you that was the way to go. Thank you for your understanding. To revert to Erland's version you could simply wait until I pull 3.2.5 from the main repo for good (in about 1-2 weeks) and then reinstall Erland's version the usual way. Or if you want a quick and permanent fix you could install Erland's version manually (more about this '*here*' (https://github.com/AF-1/lms-dynamicplaylists/tree/7283a5f2c591f7ab1c5461fe8dfb3f9c6fb3428c#reverting-to-dynamicplaylist-v2)). A manual install should prevent any future updates which I gather is what you want. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
shinedou wrote: > Hey afriend. Is there a way to control the amount of new added tracks on > a per playlist basis? I understand that *limit 'PlaylistLimit';* refers > to the DPL settings. I also see this can be overridden in a playlist > using *-- PlaylistLimitOption:unlimited* but nothing I have tried allows > me to control this per playlist. I have tried *limit '10';* but it > still just uses the default setting. Any ideas? > > Thanks. Add the --- PlaylistLimitOption:unlimited- before the sqlite statement and lose the single quotes (limit 10). Then the *max.* limit is either 2000 tracks ('unlimited') if you don't set a limit in your sqlite statement or else whatever your limit says. And the number of added tracks will always be >= the *min.* number of unplayed tracks you set in your DPL settings. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Thanks once again for your patient explanation. After more > experimentation, it is clear that the filter only works if it is applied > to all playlists. I know you are done with this and completely respect > that. > > I'm going to put this out there in the hope that someone else decides to > tinker with CustomSkip and fix this one remaining issue. In order to > frame why this an issue (at least for me), I'll offer up an example. If > the setting for CustomSkip is to apply to ALL playlists, it applies to > EVERYTHING, including just playing an entire album. So my example is if > I want to play The Beatles "White Album," i actually do want it to > include "Revolution #9." But I have that song in my Skip list so that it > never plays in a random playlist. So, right now I have to make a choice > between those two outcomes. In the old version, CustomSkip could be set > to only apply to lists played through Dynamic Playlists. > > I know I have the option of going back to the old versions of both > plugins, but I love the new functionality in afriend's updated DPL. > > Wondering out loud if anyone else out there has this issue, and if > someone would be willing to help solve it. > > Thanks for hearing me out. Maybe I misunderstood or you. To use your example try this: in the web UI home menu, go to CS and create *2 different filter _sets_*. - Leave the *first* filter *set* empty or at least *don't* include a rule to skip "Revolution #9". - In the *second* filter *set* do *enable* filtering for "Revolution #9". - Then on that very same screen (home menu > CustomSkip) *click on the _first_ filter -set-* to make it your *primary/default filter set* (=always on, filtering on all playlists). The name of the active primary filter set should be displayed at the top: *Active filter set:...* Then *in your SQLPlayList playlist* choose the *_second[/_B](!) filter set (that should filter "Revolution #9") and save it. Testing: - add "White Album" to your client playlist ([B]without DPL, no dynamic playlist*) and slowly skip forward to "Revolution #9." and see if it's skipped. It shouldn't be because the primary filter doesn't have a rule for this and the secondary filter set is not enabled. - then start your dynamic playlist that includes the "White Album". Now "Revolution #9." should be skipped - as long as DPL is active - because DPL/SQLPlayList enabled the secondary filter set when you started your dynamic playlist. Make sure all settings apply to the same client because -some CS settings like active primary filter set are client-specific-. BTW when I tested this it didn't filter on -all- playlist (despite the pref setting which might be deprecated, not certain it still has any effect). *Distinguishing between -secondary- and -primary- filter seems more important* to me than this pref setting. Works here, no idea why it doesn't for you. Good luck. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Yes, it worked this time. Testing whether it actually works is difficult > since I have to use one of my playlists and wait for it to skip a song > that is in the list to skip. From one test it seems that it is not > working. I played a custom playlist that I created in SQLPLaylist that > randomized songs from a particular year, knowing that at least one song > from that year was on the "skip" list, and let it play until that song > actually came up on the list (hoping it would skip it), but it went > ahead and played. > > Sorry if I'm being a pain in the neck. I would gladly contribute > something to support your efforts. I have good & bad news. The good news is that testing showed that the revised CustomSkip version 2.5.85 works as expected. The bad news is that I don't know why it doesn't work for you. I've created a dynamic playlist with SQLPlayList ('-Random playlist songs - Random songs from a saved playlist-'), then created a filter set ('-Test-') that skip songs with years equal to or greater than the selected year. And it works. To help you find the cause maybe some information on how CustomSkip works might be useful: In CS you can choose 1 *active* filter (set) for each client (let's call it *primary* filter). If global skipping is enabled (as it should be) it will -always- filter unwanted tracks. I do that for tracks < 90 seconds and tracks with 'never' in comment tag. When you choose a CustomSkip filter (set) in -SQLPlayList-, it's a *secondary* filter. It's enabled when a dynamic playlist is started and disabled when the dynamic playlist is stopped. A dynamic playlist is also stopped when DPL can't find any more tracks to add (matching your search criteria) meaning it will disable the secondary filter this very moment (I haven't changed that) because DPL has stopped and is not involved any longer. Therefore no more secondary filtering even if the current client playlist still has some remaining tracks to play. And if those remaining tracks include tracks that should be filtered by the secondary filter, they won't be because DPL has disabled the secondary filter before exiting. You can verify if a dynamic playlist is active if you check "Show name of active playlist in main menu" in DPL settings and then enter the DPL menu from the home menu. If a dynamic playlist is active it will show its name on top. But it's -not dynamically updated-, you need to reenter this menu to verify again after a song change. It wasn't designed for debugging. If the criteria for your static saved playlists return too few matches too soon then secondary filtering will not work great for you I guess. If you don't want to deal with SQLite and custom dynamic playlists maybe use constant filtering (primary filter) instead. I've attached a screenshot of my test setup so you can recreate it. BTW please note that I've pulled DPLv3+ from the LMS main repo. If you want to keep using it please follow the instructions on the github page (adding repo url). Good news: you can now easily switch back to DPLv2 and CustomSkip 2.5.83 if you want to. I'm really sorry but that's really all I can do now in my limited time. 35985 +---+ |Filename: sc1.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35985| +---+ '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
w3wilkes wrote: > To get the "*THIS IS NOT AN UTDATE!!! *" text in the not an update 3.2.2 > you must use the Default LMS skin -> Settings -> Plugin tab. For those > using material it just appears as though there's some type error and > Material just shows a never ending update for DPL. When selected it just > goes back to showing there's an update to DPL. This leaves Material skin > users thinking there's some type of an error in the install. Fair point. Removed DPLv3 entry completely from LMS main repo. Should disappear with next LMS main repo update. w3wilkes wrote: > Probably would have been cleaner if this plugin was created as a brand > new plugin called something like DPL3 and not mess with the old > deprecated Erland plugins. When you're trying to maintain as much backwards compatibility as possible for a plugin that has ties to other plugins unsurprisingly you can't just go and rename everything (even if you had the time). And I did give DPL v3 a different plugin ID which should have prevented auto-updating from v2 to v3. But LMS ignored this and (auto-)updated because the plugin name was a match. Something I couldn't anticipate. But now that I've pulled v3 from the main repo everybody can easily switch back to v2 and be happy. It's a choice. '*github repos*' (https://github.com/AF-1/) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
I ' v e r e m o v e d D y n a m i c P l a y l i s t s v 3 + f r o m t h e L M S m a i n r e p o . I f y o u w a n t t o c o n t i n u e u s i n g D P L v * 3 * p l e a s e a d d t h e r e p o U R L f r o m t h e ' * g i t h u b * ' ( h t t p s : / / g i t h u b . c o m / A F - 1 / l m s - d y n a m i c p l a y l i s t s ) p a g e . 2 reasons: due to some changes in my life I will have even less time to spend on LMS/plugins. And in the case of DynamicPlayList there's a previous version that's still used by some, esp. for its ties with other plugins like MultiLibrary, SQLPlayList, TrackStat or CustomScan. By removing DPLv3 from the main LMS repo v2 and v3 can coexist and switching between them should be easy. And if DPLv3 ever becomes deprecated you can always remove the repo URL and switch back to v2. The github page has all the information on v3. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > I'm trying to test out the revised (unsupported) version of CustomSkip > via these instructions: > > Using repo URL > Uninstall your previous CustomSkip version > Add the repo URL below at the bottom of LMS > Settings > Plugins: > https://raw.githubusercontent.com/AF-1/lms-customskip/main/public.xml > Install the new version > > I get as far as seeing the new version but it won't install. > > I suspect that this is because I am running LMS 7.9.4. I have been > hesitant to upgrade to 8.x because i don't want to break any of Erland's > other plugins. I'm game to try and install CustomSkip manually, but for > the life of me I can't figure out how to get access to the system > folders on a ReadNas server. > > Anyone want to help a complete luddite? Please try again. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
atrocity wrote: > I just realized that I'm again getting incomplete albums. It looks like > the checkbox to add entire albums has disappeared. I assume you're talking about your -custom- playlists because the -built-in- albums playlist work as expected here. Please check out the '*wiki*' (https://github.com/AF-1/lms-dynamicplaylists/wiki/DPL-playlist-format#general-parameters) for custom playlists. The checkbox and PlaylistContentType have been removed, too specific and limited to albums. The new parameters --- PlaylistLimitOption:unlimited- and --- PlaylistTrackOrder: ordered- can be applied to any kind of playlist, not just albums. For your custom album playlists you'll probably want to include both. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
haschmich wrote: > I also just realised that my very few SQL Playlists no longer work. > Could you help me make it work again with DPL 3.2.1? The main one was > supposed to play "random songs with rating 7 or above and not recently > played" and looks like this: > > > Code: > > -- PlaylistName:Top rated songs 7 plus > -- PlaylistGroups: > select tracks.url from tracks > join track_statistics on > tracks.url=track_statistics.url > left join dynamicplaylist_history on > tracks.id=dynamicplaylist_history.id and dynamicplaylist_history.client='PlaylistPlayer' > where > audio=1 > and dynamicplaylist_history.id is null > and track_statistics.rating>=70 > group by tracks.id > order by rand() > limit 10; > > > > It would be perfect if the rating threshold could be chosen > dynamically... > > Thanks a lot for your work on the plugin! Are you using -mysql- or -sqlite?- DPLv3 is sqlite only. While you still need plugins like TrackStat or RatingsLight for setting ratings you don't need any plugin at all for retrieving ratings from LMS directly. If your LMS database is standard sqlite this playlist should probably work: Code: -- PlaylistName:Top rated songs 7 plus -- PlaylistParameter1:list:Select minimum rating:0:0,10:1,20:2,30:3,40:4,50:5,60:6,70:7,80:8,90:9,100:10 select distinct tracks.url from tracks join tracks_persistent on tracks_persistent.urlmd5 = tracks.urlmd5 and tracks_persistent.rating >= 'PlaylistParameter1' left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.audio = 1 and dynamicplaylist_history.id is null and tracks.secs >= 'PlaylistTrackMinDuration' and not exists (select * from tracks t2,genre_track,genres where t2.id=tracks.id and tracks.id=genre_track.track and genre_track.genre=genres.id and genres.name in ('PlaylistExcludedGenres')) group by tracks.url order by random() limit 'PlaylistLimit'; afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
shinedou wrote: > Would there be a way (in the current or a future version) to create a > DPL where the user is prompted for an artist to random play BUT instead > of choosing one artist the user *can select multiple artist*. This would > create a dynamic mix using all the selected artist's songs. I understand > I can build a playlist that already has the included artists as part of > the playlist but I want to be able to build this dynamically. > > Even better would be a context menu type playlist that can be used on > the artist browse page when using the select feature where the user > could checkbox multiple artists and then clicking the context menu DPL > and it plays random from all artist selected. > > If not now or ever this would definitely be something I would like to > explore accomplishing so if you have any suggestions it would be great. > Thank you for keeping this great plugin alive. I like the idea. I guess that would require some non-trivial code changes. Not sure how much fun scrolling a list with >1000 artists would be though. I think Random Play has something like this for genres. My problem is time. Some changes in my life mean that going forward I will have even less time to spend on LMS/plugins. I'll do my best to keep DPL and the other plugins alive. And if I can't they'll always be on github. BTW since you seem to be very creative with plugins maybe take a look at Craig's '*MusicSimiliarity*' (https://github.com/CDrummond/music-similarity) (and the '*LMS companion plugin*' (https://github.com/CDrummond/lms-musicsimilarity)). It calculates how similar your tracks are to each other. Then you can "get random tracks similar to seed tracks chosen from the current play queue". Very cool stuff! afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Thanks for this. I guess some of this is over my head as I really don't > understand the relationship between DPL and SQL Playlist. Just think of DPL as some kind of random play with lots of options for fine-tuning the selection of the tracks you want to listen to. DPL uses sql queries to fetch tracks. Before DPL v3 the -source- of these sql queries had to be other plugins like SQLPlayList, TrackStat, or CustomScan. DPL asks these plugins if they want to provide any sql queries (=dynamic playlists) and if so, DPL will list them. With DPL v3 I've added 2 new options: -built-in- dynamic playlists and the option to create your own -custom- dynamic playlists and use them directly in DPLv3, without relying on other plugins. For dynamic playlists think of SQLPlayList as a sql query generator with a user interface. It takes your playlist parameter choices and creates a sql query file (either sql.xml or as a xml template). It assists you in creating sql queries. Since DPL and SQLPlayList use the same sql query format you could easily export most of your SQLPlayLists as customized sql query files and uses them in DPL directly. That's probably good to bear in mind if SQLPlayList should ever stop working properly. So when I talk about using custom dynamic playlists I usually mean creating custom sql query files and putting them in the DPL custom playlist folder. It's a very powerful option because you can create exactly the kind of dynamic playlist you want. And it probably sounds more difficult than it actually is. nyindieguy wrote: > I believe that you said in a prior post that if I set Custom Skip to > work on all playlists, that would solve the issue. If so, I think that > would be OK for my purposes, even though all my static playlists > wouldn't really need it. It seems that CustomSkip does not properly skip songs in dynamic playlists because there's a block of code in CustomSkip that prevents that. I've uploaded a slighly revised version of CustomSkip to '*github*' (https://github.com/AF-1/lms-customskip) that should fix this. In your case you would certainly benefit from a custom dynamic playlist tailored to your specific needs. Below is custom dynamic playlist based on your screenshot. Open your text editor, copy the sql code below and save it as "nameofyourchoice*.sql.xml*". The file extension *.sql.xml* is important. Now put this file into the -DPL custom playlist folder- (should be in your playlist folder if you haven't changed the location). Code: -- PlaylistName:Random songs from collection - ignore songs in selected playlist -- PlaylistParameter1:playlist:Select playlist to ignore: select distinct tracks.url from tracks left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.audio = 1 and tracks.secs >= 'PlaylistTrackMinDuration' and dynamicplaylist_history.id is null and not exists (select * from tracks t2,playlist_track where t2.url=tracks.url and tracks.url = playlist_track.track and playlist_track.playlist != 'PlaylistParameter1') and not exists (select * from tracks t3,genre_track,genres where t3.id=tracks.id and tracks.id=genre_track.track and genre_track.genre=genres.id and genres.name in ('Alternate Version','Avantgarde','Baseball','Broadway','Christmas','Comedy','Country','Electronic','Ethnic','Hip Hop','Jazz','Jazz-Fusion','Live','Novelty','Raga','Soundtrack','Spoken Word','Standards','Unreleased Rarity')) group by tracks.url order by random() limit 'PlaylistLimit'; This new playlist should now appear in the not-classified group. Adapt it to your needs (name, excluded genre list). nyindieguy wrote: > What I'm finding confusing is that if I go into your version of DPL and > create a new list by selecting the parameters and then I save it as a > favorite, it creates a new SQL file. Then I have to go into SQLPLayist > and refresh. Once I do that, the new playlist appears within DPL and > seems to work. I'm not sure I understand. Same as in v2 you can't -create- new dynamic playlists in DPL with the user interface. The only way you can add new dynamic playlists to DPL (as explained in the beginning) is by adding sql query files to the DPL custom playlist folder or in other plugins like SQLPlayLists. I
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
marco.mosca wrote: > I really appreciate your effort, however this is still far from the > previous features. In addition consider that I'm not using genres at all > as well as custom playlist, but instead using multi library to segregate > different kind of music based on disk/folder position. > > I'm wondering why you haven't created a new plugin letting us deciding > what to do. Can you evaluate this opportunity to re-establish version > 2.x as it was and having your new plugin coexisting? > > Thanks > Marco Dude, the message you're quoting was *not* directed at *you*. Like *at all*. Ok? If you'd taken a single look at the github page before accusing me of negligence you'd know there's a paragraph on how to revert to v2. Auto-updating to v3 happened for a lot of people because LMS didn't distinguish between the old and new plugin IDs and only looked at the plugin name. Seems to me that reverting to v2 is the way for you to go. And it is documented on the github page. Other people have done it. While CustomSkip will work for literally anything else with global skipping enabled there's a code block in CS that relies on the DPL v2 and prevents CS from filtering tracks in DPL mixes. Many of Erland's plugins were in some ways closely 'interlocked'. One of my objectives was to maintain as much backwards compatibility as possible while making these ties optional and non-essential. This way plugins that are deprecated (CustomSkip) and/or will probably stop working properly at some point (SQLPlayList, MultiLibrary) wouldn't break DPL in the future. I'm very sure now you understand that I cannot guarantee that -deprecated- plugins will continue to work completely or indefinitely with new versions of DPL. So the change has to happen in CustomSkip because DPL has moved on. I'll upload a version of CustomSkip to my github repo without the mentioned code block that should work with DPLv3. But *I won't provide -any- support for CustomSkip*. You can either install that version manually or delete the code block in your CS plugin yourself. Or revert to v2. That's it from me. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > This is a screenshot of one of the playlists that I use. I plays > everything in my collection randomly, excluding the genres marked, and > uses the Custom Skip filter to exclude any songs that are in a playlist > called "Skip." With v3.2.1 you have 2 options to achieve this: - I've added a dynamic playlist that plays random songs but ignores all tracks from a selected playlist. You'd have to choose the genres to exclude on the botton of DPL's settings page. That should work. Only downside: these excluded genres will apply to all built-in dynamic playlists. - Or you can create a *custom* dynamic playlist to use in DPL *directly* - _-*without*-_ SQPlayList. For that you'd have to post the sql code here so I can take a look and post my version. To get the sql code: on the screenshot page at the bottom choose the radio button "-Customize SQL-", then press -Save- but *_don't_ press any button on the next page* (save/save) or SQLPlaylist will always show this playlist in sql code. Instead copy the sql query code from the box and post it here in code tags. Then click on Home or close the window. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Regarding CustomSkip, the option still appears when I create a Dynamic > playlist. -How- do you create it? In SQLPlayList? DPLv3+ still supports SQLPlayList playlists in general. But this plugin is deprecated. It simply doesn't know and therefore can't add any of the new parameters and so on. In the case of CustomSkip it might still work if the filter set is enabled using the -startaction- playlist parameter. As I wrote on github it's probably best to do as much filtering as possible in the sql code. And if you set CustomSkip to global skipping as suggested it should skip unwanted tracks anyway regardless of what DPL or other plugins do. If you need help with your playlist definition export it from SQLPlayList (as described on the '*github*' (https://github.com/AF-1/lms-dynamicplaylists) page) and post your sql code here (incl. what you want to achieve, the playlist parameters you want to use and such). afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
shinedou wrote: > Are you talking about the plus (+) sign in the web ui that appends the > songs of an artist to the queue? So this is not part of the dynamic > playlist plug-in that you are talking about? Correct? Where in the > settings do I control the number of songs added? I am not seeing a > setting for this. > > If this is what you are talking about the one problem with this way of > doing it is that it is not random which is why I was hoping there was a > way to use dynamic playlist to do it. No. It's probably best to use the context menu. In the web UI click the *M* next to the artist of your choice, then click DPL, then next to the dynamic playlist "random songs (for selected artist)" click the *+*. On jivelite players (pCP, SB Touch etc.) you get the context menu with a long touch & hold. For the number of added songs - it's actually the very first setting: -Max. number of unplayed songs-. Now that should do the trick. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
Good catch. Added -drop table if exists- to those a couple of playlists where it was still missing. You'd probably only run into this problem if the sql query errors out before the end where the temp. table is dropped. But having it in the beginning is quicker than a LMS restart. > Also, it looks like the results of our own custom queries are still > always randomized. It would be nice to have that become optional. Works already for *album* playlists (incl. custom) that include the PlaylistParameter *-- PlaylistContentType:album* (see built-in dyn. playlists for ref.). Still trying to think of other use cases (besides album), dynamic playlists that don't benefit from shuffling? Even if you choose artist, genre, year, decade, or playlist as a starting point, what's actually added are either tracks or albums. For albums it makes sense (that's why I added the option) and random tracks shouldn't mind additional shuffling I guess. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
shinedou wrote: > Is there a way that I can have a dynamicplaylist that only queues 5 > songs from a selected artist and then stops adding new songs thus > handing the playlist queue over to DSTM\LastMix to continue adding > songs. I know this may seem counterintuitive to the purpose of this > plugin but I am trying to create a scenario where I can create an artist > random seed for LastMix to build upon. Actually, there is. It's called -Add-Only- mode. In the web UI just click on the + and it should only add a number of songs instead of starting a dynamic playlist. You can change the number of songs added on the settings page. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
marco.mosca wrote: > Unfortunately after you take over Dynamic Playlists Custom Skip Plugin > is not working anymore. Any plan to fix it? > > Thanks > Marco Have you tried 'this' (https://forums.slimdevices.com/showthread.php?115073-Announce-Dynamic-Playlists-3-(mod)=1034901=1#post1034901)? afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Visual Statistics
slartibartfast wrote: > It doesn't install at all now. Even after uninstalling the old version. > > Sent from my Pixel 3a using Tapatalk Fixed version = 1.1.3. LMS main repo pulls info from all other repos (like mine) *twice a day* I think. Just looked, VS still listed as 1.1.1 in LMS main repo. Took 1.1.1 offline because it wouldn't install anyway. Just a little patience please. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Visual Statistics
Yes, sorry bout that. Version number mismatch. Fixed version uploaded, should appear in LMS repo shortly. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
atrocity wrote: > Is there code outside of the actual SQL that is randomizing the tracks? > I can get a query that orders by disc and track outside of LMS (simply > changed the final order by to "order by tracks.disc,tracks.tracknum", > but when I try the same code within LMS the tracks end up in the > playlist in random order. > Also, will the setting for Max. number of unplayed songs result in an > added album being truncated if it has enough tracks to put it over that > number? Yes and yes. Please wait for DPL 3.2.0. It's already in the github repo and will be released soon (after Material skin 2.7.0 has been released). On the settings page: check -add complete album-, set min. album tracks to 1 (if you want to include 1- and 2-track albums) and select the genres to exclude at the bottom. Then play a dynamic *album* playlist and choose if you want to listen to played, unplayed or all songs in albums. Works here. Good luck. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Visual Statistics
Apesbrain wrote: > Very cool. Would it be possible for the pie charts to show the slice > percentage values? This could be added in the legend. Pie charts = doughnut charts? Hovering over the segments should do that. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
atrocity wrote: > I should make it clear that I've also restarted LMS. Twice, in fact. Ok, quickly before I have to leave. #1 While working on DPL 3 I switched very often between 2.10.247 (the last DPL 2 version) and DPL 3. Erland changed the code in the end so that DPL would never ask for or require the license manager. And it never did. So don't know what's going on there. Did you dl the old plugin from the link on my github page and followed the steps there? #2 "Albums - never played" means just that. Albums with no tracks in them that have been played before = the sum of the play counts of all tracks in an album would be 0. Also in the latest release version 3.1.7 there's still a minimum track requirement of 3 tracks for albums to be considered. In the lastest (but not yet released) version on github you can change this value. >From what I understand you want -partially- played albums - which is probably the state of most albums (at least most of mine). Anyway here's a very quick draft of a playlist that should meet your parameters. So if you're feeling adventurous (haven't tested it at all): Code: -- PlaylistName:Albums - partially played -- PlaylistGroups: create temporary table dynamicplaylist_random_albums as select partiallyplayed.album as album from (select distinct tracks.album as album from tracks join tracks_persistent on tracks_persistent.urlmd5 = tracks.urlmd5 and (tracks_persistent.playCount = 0 or tracks_persistent.playCount is null) left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.audio = 1 and dynamicplaylist_history.id is null and not exists (select * from tracks t2, genre_track, genres where t2.id = tracks.id and tracks.id = genre_track.track and genre_track.genre = genres.id and genres.name in ('Spoken','Interview','Comedy')) group by tracks.album order by random() limit 10) as partiallyplayed order by random() limit 1; select distinct tracks.url from tracks join dynamicplaylist_random_albums on dynamicplaylist_random_albums.album = tracks.album join tracks_persistent on tracks_persistent.urlmd5 = tracks.urlmd5 and (tracks_persistent.playCount = 0 or tracks_persistent.playCount is null) left join dynamicplaylist_history on dynamicplaylist_history.id=tracks.id and dynamicplaylist_history.client='PlaylistPlayer' where tracks.audio = 1 and dynamicplaylist_history.id is null and not exists (select * from tracks t2, genre_track, genres where t2.id = tracks.id and tracks.id = genre_track.track and genre_track.genre = genres.id and genres.name in ('Spoken','Interview','Comedy')) group by tracks.id order by dynamicplaylist_random_albums.album; drop table dynamicplaylist_random_albums; Put this code in a (text) file and save it as -partiallyplayedalbums*.sql.xml*- and then put the file in the DPL custom playlist folder (if you haven't changed the path it should be in the LMS playlist folder). It should be listed under -Not classified-. It will only play *un*played songs of -partially- played albums and exclude the genres 'Spoken','Interview', and 'Comedy'. You can add more genres in the 2 lines. I'm not sure if it will add the -entire- album (did v2 add a complete box of 500 tracks?) because after all DPL is a lot about dynamic random mixes, very much designed to increase randomness, in this case getting tracks in small batches and each batch a new query and therefore possibly new album. Anyway, I really have to go. Hope this helped a bit. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > Regarding Custom Skip, the way I use it is to omit certain songs that I > keep in a static playlist called "Skip" which omits them from any random > playlist that I create with DPL. I'm assuming that functionality still > exists (I hope). The only thing that you could configure in CustomSkip's settings (besides the folder path) was whether to limit skipping to DPL playlists or not. Just set it *yes* (= global skipping = not limited to dynamic playlists) and you should be fine. As I said I think most excluding or filtering should probably be done in the dynamic playlists (i.e. the sql queries). But for a static playlist with lots of different single tracks skipping them with CustomSkip is just as good I guess. BTW did you have a chance to test the latest github version, esp. the built-in playlists and the playlist I added for you? afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Visual Statistics
mamema wrote: > It would be nice to exclude a library or an extension. > Would be nice It would probably involve selecting or excluding virtual libraries. Unfortunately I don't have that much time at the moment. And I suspect this would need some testing because I wouldn't want this to significantly increase the sql query exec times. With very small libraries you wouldn't notice much of a difference but for larger libraries that might be different. It's definitely an idea I'll keep in mind and I'll look into it at some point. Thanks. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
First off, there is actually a section on how to revert to DPL v2.+ and not auto-update to DPL v3+ in the future. Just in case. BTW if you did a *wipe* (=clear) & rescan (not simply scan for new & changed files) -after- you'd renamed your files your database should be ok. And yes, DPL adds "only" a max. of 15 new tracks *by default* but *you can change that number* on the plugin's settings page (up to 50 tracks), it's actually the first setting. Customskip used to be closer tied to DPL but DPL playlists can still enable customskip filters even though the goal would be to filter out unwanted tracks etc. in the SQL queries right away. The built-in DPL lists are just a starting point. The real power of DPL is that you can create tailor-made dynamic playlists (within what SQLite allows) that should give you exactly what you want. And since you can filter/exclude anything unwanted from the very start you won't even need CustomSkip. Since DPL v3+ you can use these user-provided custom dynamic playlists -directly- in DPL, without any other plugin like SQLPlayList or TrackStat. Since this would be a very specific playlist tailored to your personal needs I'd obviously not add it to the built-in playlists. But I could help you create it by posting the sql playlist definition of such a dynamic playlist here so you can test it. But I need to know all the parameters. So it's - an *album* playlist, - never played before: -entire- album never played before or just -containing 1 or more tracks- never played before? - *excluding albums from which genres?* - no min. track duration? - for all albums or only those with a minium number of tracks in it? (thereby excluding "albums" like CD singles with only 2 tracks for example) - in album order or randomly ordered? ... If you want to give this a try please list all the parameters you can think of incl. what CustomSkip would have skipped. Otherwise if you prefer to revert to DPL 2.x please visit the github page for more information on how to do that. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
cpd73 wrote: > Just looked at your code and seen that you are using Material's > 'send-notif' command. Would it help if I extended this to add > "client:" then only show these messages if Material's active player > ID matches this ID? You would still see the notifications on clients A > and B, but only if both had the client as the active player. > > [Edit] Done for 2.7.0 - supply "client:id" (e.g. > "client:01:02:03:aa:bb:cc") as an extra parameter to "info" and "error" > messages, and these will only be shown in Material's current player > matches this. I think users will appreciate that. Thanks. BTW since -info- messages don't have -titles- can they have more than one line? Meaning can I use some sort of linebreak to control this. I did some testing but it would only ever show me one line. Ideally I'd have a first line indicating the status (sth like "found no tracks matching your search parameter or playlist definition for dynamic playlist:") and the playlist name on the second line. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
nyindieguy wrote: > context menu > > After reading through more of the documentation, it would seem that the > way to do this would be a CONTEXT MENU dynamic playlist like the one at > 'https://github.com/AF-1/lms-dynamicplaylists/blob/main/DynamicPlayList/Playlists/zz_contextmenulists/for_playlists/zz_CONTEXTMENU_for_selected_playlist_a01_songs_random.sql.xml > ' > (https://github.com/AF-1/lms-dynamicplaylists/blob/main/DynamicPlayList/Playlists/zz_contextmenulists/for_playlists/zz_CONTEXTMENU_for_selected_playlist_a01_songs_random.sql.xml), > but with the further parameter of selected genres. I don't do code, so > if someone is willing to walk me through this, i would greatly > appreciate it. Hi. I didn't get a message from the system about your post. True, that would be a context menu playlist. Before uploading the latest changes to github I've quickly added such a playlist so you can already test it. It should end up in the next release once testing shows no more major bugs. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
werdeil wrote: > Wonderful, tell me if I can be of any help Uploaded some changes to github. Took me a while to get through all the built-in lists. Would appreciate some thorough testing of as many built-in dynamic playlists as you can (incl. context menu dpls). Feedback in Material skin is not client specific meaning that if client *A* started a dynamic playlist and you have Material skin open in your browser with client *B* selected you'll get the feedback message about the started dpl anyway. But I think that's ok, better than no feedback. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
werdeil wrote: > I will try to work on a PR on GitHub to allow this setting to be > customizable, from what I've seen this limit to 3 is almost all > requests, is it for performance reason? I had this as a prefs setting in an early version but removed it because there were some issues. No need to PR. I'll check it out to see if there are still issues. Otherwise it will be part of one of the next updates. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
werdeil wrote: > I think this is the reason, it is possible that I have 70% of artists > with less than 3 tracks Could you do a quick test for me? Copy the built-in playlist -Artists - Never Played- (= the file named -artists_13_neverplayed.sql.xml-) from the DPL plugin folder or the github repo to DPL's *custom dynamic playlist* folder (the one where users store their own playlist definition files). If you haven't set a custom path for it, it's probably in the LMS playlist folder (default). Then open the copied playlist file in any text editor (preferably one that doesn't add stuff like control characters) and change this: in line *2* (-- PlaylistGroups:Artists) delete the word -Artists-. = the playlist will be listed in -Not classified- = easier to find. in line *30* set the value for *totaltrackcount > 3* to 1. Then restart LMS (just to be sure) and try this playlist. werdeil wrote: > I don't have this kind of feedback on the material skin view I could have sworn it was there at some point but you're right. I'll see if I can add feedback for material skin in a future update. Meanwhile if you want to do some tests you can always use '*SqueezePlay*' (https://sourceforge.net/projects/lmsclients/files/squeezeplay/). afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
werdeil wrote: > Hi I have a strange discrepancy between Dynamic Playlists 3 and Visual > statistics and @afriend I think you are the main developer of both > plugins. > > According to Visual statistics I have only 30% of played artists > (visible in the "more library statistics (text"), yet when I try to play > the Dynamic playlist "Artists - never played" no tracks is added like as > if there is no track with this criteria. So who's wrong? Played artists in this context means artists with at least one track whose playcount > 0. I've checked *played artists* with VS SQL and with DPL SQL. Comes up with the same number/percent of played artists here. Please note that this dynamic playlist ignores artists with fewer than 3 tracks. Actually a few of the built-in dynamic playlists have that mimimum requirement, esp. artist and album playlists. So that may be one reason. In my library I have only 6% played artists (because I wiped the persistent database some time ago) and when I play -Artists - never played- it works. BTW DPL should give you feedback if it doesn't find any tracks. The feedback's probably more visible and less easy to miss if you start the dynamic playlist on a jivelite player (piCorePlayer, SqueezePlay, SB Touch...). I'm sorry I can't reproduce this here. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
trmonnig wrote: > It appears that the playlists are currently limited to a max of 50 > unplayed songs, and 100 played tracks to keep. When I try to update this > value to my default of 2500, I get a message saying the limit is 50 and > 100 respectively. I believe this is as designed, but I have dynamic > playlists well into the thousands. Yes, that's by design. Smaller playlists are less likely to make clients crash or feel sluggish and depending on your dynamic playlist definiton it increases the randomness of the returned tracks. When you say you have *dynamic* playlists with thousands of tracks, do you actually mean *dynamic* playlists (which are basically SQL queries that DPL uses to get tracks) or do you mean *static/saved* playlists (from the LMS playlists home menu)? If you want to add -all- tracks of a *static* playlist -at once- and play them in a random order that's totally possible and probably easier without DPL. I'll keep your idea in mind though. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
MillmoorRon wrote: > I will investigate the new version at some point but currently I just > don't have as much time to tinker as I used to and my system is working > very well. I totally understand. Unless you use MySQL or rely on deprecated plugins (like multilibrary) I'm confident you'll find what's worked for you in v2 should still work in v3. MillmoorRon wrote: > Have you taken over development of Erland's other plugins too? No. Apart from DPL I only use CustomSkip, that's it. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
MillmoorRon wrote: > I somehow update to version 3 (despite unselecting it) without removing > version 2 first. > > What do I do now? Well, I'd intentionally changed the plugin ID of DPL v3 to prevent auto-updates and let the user decide if they want to update to v3. And I tested it at the time. But I guess LMS somehow decided that if 2 plugins have the same name they're still the same and it should auto-update. I didn't want to change the plugin name though to maintain compatibility with other plugins among other things. Anyway, if you're fine with DPL v3 check the LMS home menu and your plugin folder. If there's only one Dynamic Playlist plugin and it's v3 you should be fine. If for some reason you don't want to update to v3 and stick to DPL v2.x just download the old DPL and put the DynamicPlaylist folder in your local plugin folder. You'll find the path at the bottom of the LMS settings > information page. It's the path that does *not* have *cache* or *server* in it. Then LMS shouldn't auto-update DPL. Hope that helps. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
rlem wrote: > Hi afriend, > > On Github you write specifically that RL is "A plugin that takes care of > rating *local* tracks", so this is not a bug report but a feature > request. > Since the Online Library integration we've been heavily using and rating > Spotify tracks + mixing them with local tracks in Dynamic Playlists. > > I use TrackStat and RL together to test if we can completely switch to > RL and it seems that RL can rate Spotify tracks without a problem. > The only thing that seems to go wrong is in the Backup.xml -- there the > Spotify tracks are backed up as having rating "0", while I for sure know > that these are rated "100": > 35686 > > So, it would be great if the Spotify tracks were also backed up > correctly. > > Lastly -- a sincere thanks for reviving ratings and Dynamic Playlists! > > Best, > Randy Hi Randy, that's right, so far RL only covers local tracks. Support for -remote- tracks was already on my 2do list. Once this works I'll bump the version to *2*.x. And I'd actually planned on testing it with Spotify. I can't however give you an ETA for that. Best regards, AF afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
Hey Vincent: I've never used the Dynamic*Mix* plugin nor MusicIP so I'm not sure how much I can help you here. I get multiple errors even with the *old* Dynamic Playlists plugin. You can ignore the commandCallbacks. And the -DynamicPlaylist not active- message just means that DPL is not playing any dynamic playlist provided by DynamicMix. The problem seems to be that DynamicMix (not DPL) is not able to connect to the local MusicIP server (port 10002). I got this error too (also with the old DPL version) and I don't even run Docker. DPL basically asks all plugins if they provide dynamic playlists (getDynamicPlayLists call) and lists them in the DPL home or context menu. That works otherwise you wouldn't see them. Then when you start a dynamic playlist DPL asks the plugin that provides the dynamic playlist to deliver tracks (getNextDynamicPlayListTracks call) and -it's up to those plugins to send those tracks to DPL-. To maintain compatibility with older plugins like SQLplayList I didn't change that (SQLplayList still works). All that makes me think that problem is somewhere on the MusicIP side. Since you're on -Linux- you might want to give Craig's MusicIP mixer a try ('*LMS plugin*' (https://github.com/CDrummond/lms-mipmixer) and linux '*server*' (https://github.com/CDrummond/musicip)). Hope that helped at least a little. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
RobbH wrote: > Not sure if this qualifies as a bug, but I think it's not the expected > behavior. There does not seem to be a way to add a dynamic playlist to > LMS favorites when using the default web interface. The option to add to > favorites is in the context menu of Material skin. Is this a situation > where you would expect the user to add the context menu plugin if they > want this feature in the default interface? Probably got axed by accident and went undetected because I don't use this. But noted, will try to readd it with some future update. And sure, you can post stuff like that here. No worries. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
Thanks for letting me know. Fixed yet another typo. Getting old... :-o Should work as soon as the LMS main repo picks up the fixed version. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
You're right. One lower/upper case letter made all the difference. Should work now though. Sorry. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] [Announce] Dynamic Playlists 3 (mod)
Hi. I've uploaded my modified version of *Dynamic Playlists* to github. Based on Erland's original plugin but not maintained by him. If you're interested please visit the '*github page*' (https://github.com/AF-1/lms-dynamicplaylists) for more information (latest description, changes, installation, notes...). If you're running DPL (v2.x) and want to give DPL (v3+) a try you have to uninstall v2.x first and then install v3.x. Sorry for the inconvenience but that's by design to prevent unintentional automatic updates. Please report bugs *only here* (including relevant server log entries and the version number of LMS and your OS). Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=115073 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Visual Statistics
SpiderJon wrote: > Once the Visual Statistics plugin is enabled, there doesn't appear to be > any (easy*) way to *dis*able it ie, it's not listed under "Active > plugins". > > * deleting the VisualStatistics folder from the Plugins directory and > restarting LMS works. Why would you -ever- want to uninstall it? :-) I just checked on my test machine: installed it from LMS main repo, LMS restart, plugin works, deselected it in settings, clicked apply, lms restart, plugin gone. So unfortunately I can't reproduce your problem here. It's really a very unobtrusive plugin, no hooks, not even a pref file. Did your log show any related error or warning messages? If so, please post them in this thread. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Use Comment Tag Info
Shozzer wrote: > Looks interesting. Can you define what is meant by 'define and display > custom title formats'? the plugin's setting page wrote: > Title Formats are available for selection both in the web interface and > on players. They can be used to display a short string or a character on > the Now Playing screensaver and the Music Information plugin screensaver > or to append a string to the track title > ... > once you've set your custom title format .. you'll find it on the *LMS > settings > Interface page* Custom title formats can be used for many things and in many ways I guess, just like kidstypike said. EXAMPLE 1: [/B]-SEARCH STRING-: JPS, -FORMAT NAME:- PEEL, -DISPLAYED TITLE FORMAT STRING-: (JOHN PEEL SESSION) ON THE LMS SETTINGS > INTERFACE PAGE YOU'D FIND A NEW TITLE FORMAT UCTI_PEEL (= PLUGIN ID PREFIX + FORMAT NAME IN UPPER CASE) CREATE AND CHOOSE A NEW TITLE FORMAT: TITLE UCTI_PEEL NOW EVERY VIEW THAT USES TITLE FORMATS WILL DISPLAY TRACKS WITH JPS IN THEIR COMMENT TAGS AS -TITLE NAME (JOHN PEEL SESSION)-. OTHERWISE JUST THE TITLE NAME. [B]EXAMPLE 2: I have a collection of songs that I like very much by bands I saw live, some are rated, some are not, very different songs from all over the place. -search string-: favlive, -format name:- sawthemlive, -displayed title format string-: black heart icon I use the custom title format to display some icon on the now playing screen of my -Boom- device using the -Music Information Screen- plugin. there should be a custom title format called UCTI_SAWTHEMLIVE on the LMS settings > Interface page I'll create a new one called RL_RATING_STARS UCTI_SAWTHEMLIVE and on the LMS settings > Player > Music Information screen page > Screensaver Two lines (standard) so I can display both, track ratings and this icon I choose this title format for the upper left corner to display available track ratings and the black heart in case the current song belongs to that group. I'm not sure if my explanations helped but I hope they gave you at least an idea of what you can do with this plugin. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] [Announce] Use Comment Tag Info
This plugin uses (key)words in your music files' comment tags to: - add extra information to the song details page - define and display custom title formats - create virtual libraries with browse menus Full/current description 'here' (https://github.com/AF-1/lms-usecommenttaginfo). afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114968 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] [Announce] Visual Statistics
Just a plugin that gives you charts for some library statistics. You'll find it in the *Extras* menu. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=114967 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
cpd73 wrote: > > afriend wrote: > > Craig, > > could you add a 'More' item to year (song details page/context menu). > > That way I could access -DynamicPlaylist menu items- registered for > > -year- ('Rated tracks from this year', 'Random tracks from year'...) > > like I can on pCP. Thank you.> > > Added to playlists and years for 2.5.1 2.5.1: -Years- on the *song details page* still doesn't show that -More- item. I can see it in -Home menu > years > someyear- though. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Material Skin
Craig, could you add a 'More' item to year (song details page/context menu). That way I could access -DynamicPlaylist menu items- registered for -year- ('Rated tracks from this year', 'Random tracks from year'...) like I can on pCP. Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] MusicInfoSCR 4.3 - now with theOriginal Boom Booklet Layout
Michael, I'm posting this question here because your plugin includes custom fonts that allow you to use custom charcters on the display of some devices. And since you're the LMS core developer I'm hoping for a final possible/not possible answer. I'd very much like to use the *blackstar unicode 2605 character* with my plugin's default title formats. Unfortunately jivelite's default font FreeSans doesn't include this character. So it won't be displayed on pCP, Touch, Radio or anything else using jivelite unless you install a different font that includes this character (which probably hardly any user will do). If I include a custom font in my plugin that includes this character (I really only need this 1 character) is it possible to display this character on jivelite *without* installing a new font? Or was that only a thing with the older Logitech devices (line display)? Ralphy thinks it's not possible without installing a new font. What's your take on this? Thanks. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=53347 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
cpd73 wrote: > Added 'Similar tracks' and 'Similar tracks by artist' to 'More' menu. Thanks. What's the difference between '-Create Similarity Mix-' and '-Similar tracks-' if I call them on the same track (other than the number of added tracks)? Are the results of '-Similar tracks-' or '-Similar tracks by artist-' sorted in any way (from most similiar to least similar)? And does the original genre filter pref from the settings page apply to '-Similar tracks-'? Probably not to '-Similar tracks by artist-' I guess, because that wouldn't make much sense. cpd73 wrote: > Musly does not indicate if its danceable, etc, that needs something like > Essentia. I was listing to a good remix of some late 80s indie pop/alternative dance track and wanted more exactly like this one from the same -decade-. It was still me though who determined that the original track was very dancable. :-) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
cpd73 wrote: > [Edit] Changed default to 30 seconds. I did actually change exactly that value in your code for testing. You probably won't believe this (I wouldn't) but even though logic dictates otherwise in the end I wasn't able to get rid of this timeout problem until I set timeout: 30 in the plugin prefs file. A mystery. :-) Anyway, it works now, so... cpd73 wrote: > As you noted 'don't repeat album' does not apply to 'Various Artists' - > my thinking was they are already a mix of similar tracks, so no harm if > they play one after another. I just did not want repeated tracks by the > same artist - which Musly seems to produce very often I see. I'm usually hoping for musly to give me similar tracks but also from different sources/albums/artists/genres. It's an interesting way to (re)discover my library. So for a compilation would mean similar tracks but the same source. One suggestion if I may: often it either takes too many clicks (iPeng) or it's impossible (jivelite - pCP, Touch, Radio) to access a plugin's setting page. Therefore I thought maybe you could just register 2 similarity DSTM mixers: 1 without and 1 with enabled genre filtering. The DSTM menu is only 1 click away and also available in jivelite. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
Thank you for adding that option. I'm a bit of a serialskipper sometimes. This setting will also help prevent me looping back to the beginning of the playlist when I skip too many tracks before enough new tracks have been added. Even if it wasn't intended to do that :-) And you're right, my hardware is very old (10y+), runs LMS, muslyserver and other stuff, and I have more tracks in my db than you so response times are not snappy, at all. And the machine goes to sleep if not used + the music files are stored on an external HDD (spin-up time). In the end it all works but definitely much more slowly than on modern PCs like yours. But I won't throw it away unless it's really broken. Good news is that I may have 'fixed' my song mix/timeout problem for now. Your Similarity code suggests that you'd planned to make the '*getjsondata timeout value*' (https://github.com/CDrummond/lms-musicsimilarity/blob/master/MusicSimilarity/Plugin.pm#L271) a configurable pref option but maybe forgot to add the UI settings part? A timeout value of 5 secs is probably too low for my paleo setup. So I manually set the timout value to 25 secs in the prefs file. So far it works. Which makes me happy because I'd find it difficult to go back to random mixes once you got used to musly mixes. P.S. No matter what, I like the 'create mix' option. Fast way to start a mix from 1 track or to see what musly thinks is similar without starting a mix (kind of like a dry-run). afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
I've been using Similarity a bit more. I like it. Far better than random mixes. Can I just ask about genre filtering: if I create only *one* genre filter group for Classical music genres does this mean that if I start a mix with *no* classical music seed tracks does it mean that this mix will cover *all* genres except classical music? Just asking because while I'd like a classical music mix to feature only classical music I don't want classical music tracks to appear in any other mix. Do you think you could make the number of tracks DSTM adds (default=5) a config option? The DSTM similarity mix uses the similarity score of the last 5 seed tracks (the ones it just added) and therefore it would a kind of 'evolving' mix changing the character of the playlist as it 'evolves'? Compared to always using the similarity score of the original/first seed tracks. If it's evolving then larger batches would mean that the 'character' of the playlist would change more slowly (which can be nice). Or maybe another option to lock the similarity scores to the original seed tracks to keep the character of the playlist? I'm very glad you added the "Create Similarity Mix" context menu item and that it adds 50 tracks at once because the DSTM mixer is not really working for me right now. Plugins::MusicSimilarity::Plugin::__ANON__ (176) Failed to fetch URL: Timed out waiting for data Plugins::MusicSimilarity::Plugin::_mixFailed (202) Return empty list The first batch is usually added without problems but when the second batch is supposed to be added (last but one song started) it seems DSTM or Similarity times out before musly server has returned the results and DSTM adds the 'song mix'. The muslyserver python process is still busy when DSTM adds the song mix. At first I thought it was related to my setup: I often use a touchscreen piCorePlayer (without Squeezelite running) to control other clients - like a Boom in this case. Do you know how to fix this? Or this someting that can only be addressed in the DSTM plugin? (didn't find any timeout option in DSTM though) Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
dunq wrote: > Using the comments technique, files which have a valid rating comment > (eg favstars4xx) get a correct rating imported, while files with no > comment have their existing rating in the database overridden -> no > rating. Is that the intended behaviour? Yes, that's by design. It helps me transfer changed track ratings from other software to LMS. In this case it's needed because otherwise LMS would still show tracks as rated that I unrated somewhere else. I might include an option (disabled by default though) in the next version so tracks without comment tag keywords won't be unrated while new and changed track ratings will still be imported. IMHO it's a corner case but I see no harm in adding this. dunq wrote: > Importing from a playlist, this mostly works (though on my first run of > testing yesterday the server would sometimes crash), but I now have a > handful of tracks that mysteriously refuse to display a rating [Material > skin], even though all others in the same playlist do. On further > examination, the database has been updated for all tracks including the > no-displayed-rating ones mentioned (correctly having a RATING value in > the database), so why isn't the LMS interface showing the stars anywhere > that other tracks do? (Although I realise this seems to be a non-Ratings > Light problem, it is only happening for files that I've rated using > this import process, so I'm posing the question here just in case.) While I don't know your LMS setup/config and you didn't post any log messages I know that sometimes very large playlists can be a problem with LMS. But on the other hand I've tested this with playlists > 2000 tracks. Could any of these tracks without displayed rating stars have been deleted, moved or have their urls changed otherwise... can you play them in LMS? What rating values does the persistent.db show for them? afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
streifenleopard wrote: > I think I don't quite get what the plug in is for. You'll find a brief summary of what RL can do in the first post of this thread. streifenleopard wrote: > It is not possible to import ratings from musicbee or another music > player into Ratings Light? Or am I mistaken? It's possible, just not as simple as one button click. Is this supposed to be a one-time import or are you thinking of keeping ratings in sync between 2 or more audio server systems? One straightforward way for a -one-time import- would be to - create 5 playlists (1-5 stars) with your rated tracks in that other music software and export them as m3u/m3u8-playlists, - import these playists into LMS (settings > basic > rescan > only playlists), - use RL to assign a rating value to the tracks in those playlists. What I do to keep my ratings in sync between iTunes and LMS is to keep them (together with a keyword) stored in the music files' comment tag so they can travel with the files. RL can pick up rating values from comment tags and import them into LMS. If I rate tracks in LMS RL has an option to export playlists with just those new/changed ratings so I can easily set them in iTunes. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
Redbeard65 wrote: > After installing Ratings Lite I get the following error in my scanner > log... Could you do me a favour and check on your Windows OS if version 1.9.2 fixed this? Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > Anyway, since it only affects the -post-scan refresh- I'll try a > > workaround and add a dedicated post-scan function that calls the > refresh > > function unless it's been done in the last 30 seconds or so. > > What I sometimes do in such situations is to > Slim::Utils::Timers::setTimer(), and first thing the handler would do > _before_ setting the timer, is to kill any current timer for the > respective function. That would make sure we only run once in the given > > delay. It's a different approach. What I had in mind was: do post-scan refresh unless post-scan refresh already happened in the last 30 seconds. Users can see the results of the refresh/import very quickly and won't get confused or think the ratings import failed. ('code' (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Plugin.pm#L1259)) I like the timer solution because it's safe: however many calls happen within any subsequent 30 secs window it will only take the last one. Only downside is the final delay of 30 seconds + execution time before the refresh results are available to the users. Hard to choose. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > Im away from my computer. But could you disable photo/video scanning > and try again? Uncheck the relevant boxes right to the path in the basic > settings. Even if one of the 2 messages/rescan done events is due to the external scanner crashing I'm guessing I can't get to the root of what's causing this. I mean what more can I do than a new install, disabling all plugins but the test plugin and then do a rescan. I think the 2 rescan done events even happen if there are no tracks in the library (when LMS starts for the first time). Anyway, since it only affects the -post-scan refresh- I'll try a workaround and add a dedicated post-scan function that calls the refresh function unless it's been done in the last 30 seconds or so. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > Im away from my computer. But could you disable photo/video scanning > and try again? Uncheck the relevant boxes right to the path in the basic > settings. There's only one path (for music files). Nothing else. *Server.prefs*: > ignoreInImageScan: > - /Users/defaultuser/Music/MEDIA > ignoreInVideoScan: > - /Users/defaultuser/Music/MEDIA > (...) > mediadirs: > - /Users/defaultuser/Music/MEDIA afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > So that's only happening on my system? (with *all* other *plugins* > > (incl. LMS provided) *disabled* except Test Plugin) > > Anything in scanner.log? >From what I can see nothing suspicious (attached). If something is wrong/crashes is there any way to find out more? The *server*.log says these are the only importers imvolved: > Slim::Music::Import::addImporter (556) Adding > Slim::Music::VirtualLibraries Scan > Slim::Music::Import::countImporters (625) Found importer: > Slim::Music::VirtualLibraries > Slim::Music::Import::addImporter (556) Adding > Slim::Media::MediaFolderScan Scan > Slim::Music::Import::countImporters (625) Found importer: > Slim::Music::VirtualLibraries > Slim::Music::Import::countImporters (625) Found importer: > Slim::Media::MediaFolderScan > +---+ |Filename: scanner.log.zip | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=34697| +---+ afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > Something odd is going on here. I still can't reproduce the issue: > > > Code: > > [21-05-16 15:50:45.9369] Slim::Utils::SQLiteHelper::_notifyFromScanner (581) Notify from scanner: end > [21-05-16 15:50:45.9374] Slim::Utils::SQLiteHelper::updateProgress (466) Notify to server OK > [21-05-16 15:50:45.9387] Slim::Utils::SQLiteHelper::updateProgress (442) Notify to server: ["exit"] > [21-05-16 15:50:45.9393] Slim::Utils::SQLiteHelper::_notifyFromScanner (581) Notify from scanner: exit > [21-05-16 15:50:45.9486] Plugins::TestPlugin::Plugin::testcallback (23) Triggered by rescan done > [21-05-16 15:50:45.9487] Plugins::TestPlugin::Plugin::testcallback (25) > > ** TEST CALLBACK INIT ** > > [21-05-16 15:50:45.9488] Slim::Utils::SQLiteHelper::updateProgress (466) Notify to server OK > [21-05-16 15:50:45.9489] Slim::Schema::wipeCaches (2130) Wiped all in-memory caches. > [21-05-16 15:50:45.9490] Slim::Schema::wipeCaches (2130) Wiped all in-memory caches. > [21-05-16 15:50:45.9552] Slim::Schema::wipeCaches (2130) Wiped all in-memory caches. > > > > > One call. > > Now if I look at the code where you got called for the second time, it > mentions in a comment that this should only happen if something went > wrong: > > https://github.com/Logitech/slimserver/blob/public/8.2/Slim/Music/Import.pm#L735 > > You're on a Mac (so am I!)? What macOS? The latest 10.15.7 afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > And whatever I do the callback function is *always called twice* on > my > > system. I even talked a not very happy friend into installing LMS and > > softsqueeze on his old Windows7 laptop with only this test plugin > > enabled and he gets 2 messages as well. > > Does this happen on any type of scan, or only some (rescan, wipecache > etc.)? Just tested: not tied to any type, affects all types. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > Can you confirm that *2* events for rescan done is normal or can get > I > > get it down to one?[/color] > No, I only get one. So I've added debug messages to all rescan done in the scanner related LMS pms. Here's the log of a wipecache: > [21-05-16 14:52:55.3970] Slim::Web::Settings::Server::Basic::handler > (54) Initiating scan of type: wipecache > [21-05-16 14:52:55.3973] Slim::Music::Import::initScanQueue (785) > initialize scan queue > [21-05-16 14:52:55.3974] Slim::Music::Import::initScanQueue (788) * > Rescan Done sent - line 788 in initScanQueue function * > > [21-05-16 14:52:55.3975] Slim::Music::Import::queueScanTask (849) full > wipecache requested, wipe queue > [21-05-16 14:52:55.3976] Slim::Music::Import::clearScanQueue (864) > clearing queue: () > [21-05-16 14:52:55.3981] Slim::Music::Import::nextScanTask (799) > triggering next scan: wipecache > [21-05-16 14:52:55.4014] Slim::Music::Import::countImporters (625) Found > importer: Slim::Media::MediaFolderScan > [21-05-16 14:52:55.4019] Slim::Music::Import::countImporters (625) Found > importer: Slim::Music::VirtualLibraries > [21-05-16 14:52:55.4082] Slim::Music::Import::launchScan (203) Running > scanner using arguments: /usr/bin/perl ( > > "/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/scanner.pl", > "--logconfig=/Users/defaultuser/Library/Application > Support/Squeezebox/log.conf", > "--priority=0", > "--prefsdir=/Users/defaultuser/Library/Application > Support/Squeezebox", > "--novideo", > "--noimage", > "--wipe", > "--debug", > > "database.virtuallibraries=ERROR,artwork=ERROR,scan.scanner=DEBUG,scan=DEBUG,scan.import=DEBUG,database.info=ERROR,scan.auto=DEBUG,formats.playlists=ERROR,formats.audio=ERROR", > ) > [21-05-16 14:52:55.4138] Slim::Music::Import::nextScanTask (803) > remaining scans in queue: () > [21-05-16 14:52:56.5208] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.47423||importer||/Users/defaultuser/Music/MEDIA|discovering_directory||1||0|| > [21-05-16 14:52:56.5328] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576||importer||/Users/defaultuser/Music/MEDIA|discovering_directory||36||36||1621169576.53069 > [21-05-16 14:52:56.5371] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.53516||importer||/Users/defaultuser/Music/MEDIA|directory_new||1||35|| > [21-05-16 14:52:56.6544] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576||importer||/Users/defaultuser/Music/MEDIA|directory_new||35||35||1621169576.65239 > [21-05-16 14:52:56.6597] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.65689||importer||/Users/defaultuser/Music/Playlists|discovering_playlist||1||0|| > [21-05-16 14:52:56.6742] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576||importer||/Users/defaultuser/Music/Playlists|discovering_playlist||9||9||1621169576.6709 > [21-05-16 14:52:56.6922] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||1||7|| > [21-05-16 14:52:56.7333] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||2||7|| > [21-05-16 14:52:56.7588] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||3||7|| > [21-05-16 14:52:56.7851] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||4||7|| > [21-05-16 14:52:56.8437] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||5||7|| > [21-05-16 14:52:56.8584] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||6||7|| > [21-05-16 14:52:56.8776] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.68882||importer||/Users/defaultuser/Music/Playlists|playlist_new||7||7|| > [21-05-16 14:52:56.8915] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576||importer||/Users/defaultuser/Music/Playlists|playlist_new||7||7||1621169576.88951 > [21-05-16 14:52:56.8955] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: > progress:1621169576.89354||importer||virtuallibraries||1||1|| > [21-05-16 14:52:56.8995] Slim::Utils::SQLiteHelper::_notifyFromScanner > (581) Notify from scanner: >
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > I can't reproduce this. Maybe you can disable 3rd part plugins to see > whether this still happens without them? Sorry, I forgot to mention that I'd already disabled *all* plugins (not only 3rd party plugins) and deleted all databases and caches known to me at some point. So the only plugin enabled is my Test Plugin that gives me the debug messages for rescan done events: Code: package Plugins::TestPlugin::Plugin; use strict; use warnings; use utf8; use base qw(Slim::Plugin::Base); use Slim::Utils::Log; my $log = Slim::Utils::Log->addLogCategory({ 'category' => 'plugin.testplugin', 'defaultLevel' => 'DEBUG', 'description' => 'Test Plugin', }); sub initPlugin { my $class = shift; Slim::Control::Request::subscribe(\,[['rescan'],['done']]); $class->SUPER::initPlugin(@_); } sub testcallback { $log->debug("\n\n** TEST CALLBACK INIT **\n\n"); } 1; And whatever I do the callback function is *always called twice* on my system. I even talked a not very happy friend into installing LMS and softsqueeze on his old Windows7 laptop with only this test plugin enabled and he gets 2 messages as well. Ordinary install.xml be like Code: af1---- Test Plugin Plugins::TestPlugin::Plugin 0.0.1 some desc AF enabled Logitech Media Server 7.9 * I really don't know where else to look. Are there any other settings that could cause this? If I only knew what to look for... _ Logitech Media Server Version: 8.1.2 - 1619728303 @ Fri Apr 30 Operating system: macOS 10.15.7 - EN - utf8 Platform Architecture: unknown Perl Version: 5.18.4 - darwin-thread-multi-2level Audio::Scan: 1.02 IO::Socket::SSL: 2.066 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > BTW do I need a *'shutdownplugin' > > > (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Importer.pm#L42)* > > in importer.pm as well? If I have one I've noticed the scanner will > call > > it once the scan is complete. > > It's kind of obsolete by now. Unless you have to eg. write out some > information on shutdown you don't need it at all. I'm not sure I've > implemented it for any of my plugins. > > "shutdownPlugin" is mostly a left over from earlier days when we tried > to make plugins loadable on the fly, without restarting LMS. Loading > would kind of work, but un-loading can't (with Perl). Thanks for explaining this, will get rid of this. But what about the *2* rescan done events I get? I've disabled/removed all of my import/scanner code and I still get *2* rescan done events after every rescan. Can you confirm that *2* events for rescan done is normal or can get I get it down to one? And if not, how would I make sure my callback function is only called *once*? Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
cpd73 wrote: > Changing 'styletracks' requires the jukebox file to be *removed*, but > this only takes a minute or so to be recreated. Sorry, misread that one. Wasn't necessary. And I did it anyway. :-) If I could ask one thing in some future update it would be -debug log markers- that tell me (maybe every 1000 tracks or so) about the progress of those steps that take time / loop through the library. Some day I might test musly analysis on a more recent machine. For now, I'm stuck with this old one. Thanks for your help. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Announce: Musly DSTM Mixer (mix by similarity)
cpd73 wrote: > Just to let you know, Musly has a 'bug' > (https://github.com/dominikschnitzer/musly/issues/43) where sometimes > all songs get the same similarity score. I noticed this last night after > I did a complete rescan. My mixer produced odd results, and they were > all from the first artist/albums (ordered A-Z). I looked at the logging > and all tracks had the same similarity. This was with using 2000 for > 'styletracks', I also tried 1500 and had similar results. Using 1000 > (which is the default anyway) seemed to work OK. Changing 'styletracks' > requires the jukebox file to be removed, but this only takes a minute or > so to be recreated. > > Thought you might like to know in case you are getting really weird > results. Thank you for letting me know (was using the default 1000). Do you know how many tracks that bug affects? Anyway, I've been quite pleased with Musly so far. Even if there's an odd one every now it's not completely off. I really appreciate this new way to listen to my local music. Just one question: I remember Roland0 saying that *starting* the Musly server (*without* a jukebox file) can take quite some time. And it certainly does on my old hardware! So in order to avoid this long startup could I *delete the jukebox _while_Musly_is_still_running_*? Would the jukebox be recreated on demand in this case or is it necessary to restart Musly server without a jukebox file for it to be rcecreated? Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=112713 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > > > But it turns out the *refresh function tied to rescan done is called > > _twice_* after a scan. > > Your own refresh function? Is refreshAll() called twice or the callback > for the rescan done event? Yes, the callback (= the function *'importerPostScanRefresh' (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Plugin.pm#L1268)*) for the *'rescan done event' (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Plugin.pm#L89)* is triggered twice. Seems to receive 2 rescan done events?? BTW do I need a *'shutdownplugin' (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Importer.pm#L42)* in importer.pm as well? If I have one I've noticed the scanner will call it once the scan is complete. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
mherger wrote: > I'd need much more information than the two snippets, in particular > answers to these two questions: > > - did you adjust the install.xml to use the new scanner module? > - what are the imports of the scanner module? I totally forgot about install.xml :-o So I've moved the importer code into a separate 'importer.pm' (https://github.com/AF-1/lms-ratingslight/blob/main/RatingsLight/Importer.pm). After the import I used to refresh my virtual libraries and title formats and clear the display cache. It seems that this is not something I can do or kick off in the importer.pm. Those scanner limitations you mentioned, maybe? So I thought maybe I need to subscribe to "rescan" "done" in plugin.pm and handle it there. But it turns out the *refresh function tied to rescan done is called _twice_* after a scan. Do I need to limit this to one refresh with a variable (0/1)? Or is there another way? And do you have any more examples of what should be moved into separate pms? afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Ratings Light
Ok, I have no problem with a separate scanner.pm, even if it's only for calling one subfunction. It would certainly be nice if Windows users get no more errors. And then all the reasons you mentioned. Hope you can help me with some questions: on macOS I just successfully ran something like this: PLUGIN.PM Code: use Plugins::RatingsLight::Scanner; ... sub initPlugin { my $class = shift; return if $initialised; $class->SUPER::initPlugin(@_); Slim::Music::Import->addImporter('Plugins::RatingsLight::Scanner', { 'type' => 'post', 'weight' => 99, 'use' => 1, }); initPrefs(); initIR(); ... And then the *scanner.pm* basically gets the startScan and the import function: Code: sub startScan { my $enableautoscan = $prefs->get('autoscan'); if (defined $enableautoscan) { importRatingsFromCommentTags(); } Slim::Music::Import->endImporter(__PACKAGE__); } importRatingsFromCommentTags{...} But the scanner still calls InitIR() from the plugin.pm initPlugin function which includes stuff the scanner can't deal with. That makes me think it would still give the same error on Windows. How do I tell the LMS scanner to just use the scanner.pm and that it should ignore the contents of *plugin.pm* otherwise that's causing the (Windows) problems? Or is it the addImporter part? Do I have to move to scanner.pm too or use something else entirely? Thank you. afriend's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=113344 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins