Announcement

Collapse
No announcement yet.

[Announce] Dynamic Playlists 3 (mod)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Announce] Dynamic Playlists 3 (mod)

    ⚠️ DPL version 3 is deprecated.
    More information about version 4 on the GitHub page.
    Last edited by AF1; 2023-01-02, 16:05.
    Report a problem ––– GitHub repositories of my plugins

    #2
    I am unable to install the plugin from the repo. When the server restarts after an attempt to install, the server log tell me this:

    Code:
    [21-09-02 00:42:45.8786] Slim::bootstrap::tryModuleLoad (286) Warning: Module [Plugins::DynamicPlayList::Plugin] failed to load:
    Can't locate Plugins/DynamicPlayList/Plugin.pm in @INC (you may need to install the Plugins::DynamicPlayList::Plugin module) (@INC contains: /usr/sbin/Plugins/Bandcamp/lib /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Bandcamp/lib /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/BBCSounds/lib /var/lib/squeezeboxserver/cache/InstalledPlugins /usr/share/squeezeboxserver/CPAN/arch/5.28/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.28/arm-linux-gnueabihf-thread-multi-64int/auto /usr/share/squeezeboxserver/CPAN/arch/5.28.1/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.28.1/arm-linux-gnueabihf-thread-multi-64int/auto /usr/share/squeezeboxserver/CPAN/arch/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.28 /usr/share/squeezeboxserver/lib /usr/share/squeezeboxserver/CPAN /usr/share/squeezeboxserver /usr/sbin /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at (eval 900) line 1.
    BEGIN failed--compilation aborted at (eval 900) line 1.
    
    [21-09-02 00:42:45.8795] Slim::Utils::PluginManager::load (323) Error: Couldn't load Plugins::DynamicPlayList::Plugin
    Logitech Media Server Version: 8.3.0 - 1629376548 @ Thu Aug 19 14:58:08 CEST 2021
    Operating system: Debian - EN - utf8
    Platform Architecture: armv7l-linux
    Perl Version: 5.28.1 - arm-linux-gnueabihf-thread-multi-64int
    Audio::Scan: 1.02
    IO::Socket::SSL: 2.060
    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

    Will try a manual install tomorrow.
    Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

    Comment


      #3
      You're right. One lower/upper case letter made all the difference. Should work now though. Sorry.
      Report a problem ––– GitHub repositories of my plugins

      Comment


        #4
        Originally posted by afriend View Post
        You're right. One lower/upper case letter made all the difference. Should work now though. Sorry.
        Thanks! Successfully installed from the repo this morning.

        Thank you for doing this. I've been hoping someone would take this on.
        Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

        Comment


          #5
          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?

          LMS 3.0, Raspberry Pi OS (Debian)

          Meta question: would it be better to start another thread for for questions and comments that don't qualify as bugs? I'm not sure if the statement, "Please report bugs only here" means that nothing but bug reports should go in this thread, or that bugs should never reported anywhere but in this thread. Or both.
          Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

          Comment


            #6
            Originally posted by RobbH View Post
            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?
            I don't use favorites. But should be fixed in 3.1.2.
            BTW just in case you'd like to create your own custom dynamic playlists for favorites please note that one thing hasn't changed since the old DPL version: you can only add dynamic playlists to favorites that are "one-click" playlists, meaning those that don't request further parameter input from users. Only those dynamic playlist will show the save as fav. button.
            Last edited by AF1; 2021-09-03, 19:50.
            Report a problem ––– GitHub repositories of my plugins

            Comment


              #7
              Originally posted by afriend View Post
              I don't use favorites. But should be fixed in 3.1.2.
              BTW just in case you'd like to create your own custom dynamic playlists for favorites please note that one thing hasn't changed since the old DPL version: you can only add dynamic playlists to favorites that are "one-click" playlists, meaning those that don't request further parameter input from users. Only those dynamic playlist will show the save as fav. button.
              That makes sense and shouldn't be an issue for me. So far, all my dynamic playlists are entirely predefined, with no runtime input required. Just lists of genres to include and exclude.
              Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

              Comment


                #8
                Hi
                I'm trying tu run your plugin (v 3.1.3) on a docker instance of LMS 8.2.0

                Code:
                Logitech Media Server Version : 8.2.0 - 1627922070 @ Tue Aug 3 11:37:35 CEST 2021
                Nom d'hôte : TNAS-5FB2
                Adresse IP du serveur : 192.168.1.142
                Port HTTP du serveur : 9000
                Système d'exploitation : Debian - FR - utf8
                Architecture de la plate-forme : x86_64-linux
                Version de Perl : 5.24.1 - x86_64-linux-gnu-thread-multi
                Audio::Scan : 1.02
                IO::Socket::SSL : 2.044
                Version de la base de données : DBD::SQLite 1.58 (sqlite 3.22.0)
                Platines identifiées : 1
                when trying to add a playlist, my current playing is stopping, my playlist is emptied but nothing else occurs

                here is a brief log extract

                Code:
                [21-09-05 18:24:55.8054] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug  3 11:37:35 CEST 2021) perl 5.024001 - x86_64-linux-gnu-thread-multi
                [21-09-05 18:24:57.8296] Plugins::RaopBridge::Plugin::initPlugin (69) $VAR1 = {
                          'binArch' => 'i386-linux',
                          'isDebian' => 1,
                          'os' => 'Linux',
                          'osArch' => 'x86_64-linux',
                          'osName' => 'Debian',
                          'uid' => 'squeezeboxserver'
                        };
                [21-09-05 18:24:58.7027] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist addtracks
                [21-09-05 18:24:58.7041] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist jump
                [21-09-05 18:24:58.7051] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist stop
                [21-09-05 18:24:59.4258] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:24:59.4290] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:25:00.3568] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist newsong
                [21-09-05 18:25:00.3579] Plugins::DynamicMix::Plugin::isDynamicPlaylistActive (609) DynamicPlaylist not active
                [21-09-05 18:27:01.8386] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist jump
                [21-09-05 18:27:01.8400] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist stop
                [21-09-05 18:27:02.6197] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:27:02.6216] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:27:05.3290] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist newsong
                [21-09-05 18:27:05.3300] Plugins::DynamicMix::Plugin::isDynamicPlaylistActive (609) DynamicPlaylist not active
                [21-09-05 18:27:57.3330] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug  3 11:37:35 CEST 2021) perl 5.024001 - x86_64-linux-gnu-thread-multi
                [21-09-05 18:27:59.3596] Plugins::RaopBridge::Plugin::initPlugin (69) $VAR1 = {
                          'binArch' => 'i386-linux',
                          'isDebian' => 1,
                          'os' => 'Linux',
                          'osArch' => 'x86_64-linux',
                          'osName' => 'Debian',
                          'uid' => 'squeezeboxserver'
                        };
                [21-09-05 18:28:00.0787] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist addtracks
                [21-09-05 18:28:00.0803] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist jump
                [21-09-05 18:28:00.0817] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist stop
                [21-09-05 18:28:00.7978] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:28:00.7999] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist open
                [21-09-05 18:28:01.7352] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist newsong
                [21-09-05 18:28:01.7362] Plugins::DynamicMix::Plugin::isDynamicPlaylistActive (609) DynamicPlaylist not active
                [21-09-05 18:35:02.4681] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist clear
                [21-09-05 18:35:02.4707] Plugins::DynamicMix::Plugin::commandCallback (371) DynamicMix: received command: playlist stop
                [21-09-05 18:35:12.9989] Plugins::DynamicMix::Plugin::getDynamicPlayLists (632) getDynamicPlayLists
                [21-09-05 18:35:13.0020] Plugins::DynamicMix::Plugin::getDynamicPlayLists (635) moods=Can't connect to localhost:10002 (Connection refused),,Connection refused at /usr/share/squeezeboxserver/CPAN/LWP/Protocol/http.pm line 50.
                [21-09-05 18:35:15.2308] Plugins::DynamicMix::Plugin::getDynamicPlayLists (632) getDynamicPlayLists
                [21-09-05 18:35:15.2335] Plugins::DynamicMix::Plugin::getDynamicPlayLists (635) moods=Can't connect to localhost:10002 (Connection refused),,Connection refused at /usr/share/squeezeboxserver/CPAN/LWP/Protocol/http.pm line 50.
                [21-09-05 18:35:27.3303] Plugins::DynamicMix::Plugin::getDynamicPlayLists (632) getDynamicPlayLists
                [21-09-05 18:35:27.3331] Plugins::DynamicMix::Plugin::getDynamicPlayLists (635) moods=Can't connect to localhost:10002 (Connection refused),,Connection refused at /usr/share/squeezeboxserver/CPAN/LWP/Protocol/http.pm line 50.
                Thank you for your consideration, Hope situation could be fixed

                Vincent

                Comment


                  #9
                  Hey Vincent:

                  I've never used the DynamicMix 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 and linux server).
                  Hope that helped at least a little.
                  Report a problem ––– GitHub repositories of my plugins

                  Comment


                    #10
                    Originally posted by afriend View Post
                    Hey Vincent:

                    All that makes me think that problem is somewhere on the MusicIP side.
                    ...
                    Hope that helped at least a little.
                    Thank you for your help, I'll give all this Musicip stuff a try and hope to figure this out to get the best random mix configuration possible 👍

                    Comment


                      #11
                      I somehow update to version 3 (despite unselecting it) without removing version 2 first.

                      What do I do now?

                      Comment


                        #12
                        Originally posted by MillmoorRon View Post
                        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.
                        Report a problem ––– GitHub repositories of my plugins

                        Comment


                          #13
                          Thank you. Successfully reverted to version 2.

                          I had 2 available plugin updates and the Dynamic Playlist one showed the warning about uninstalling the old one first so I unchecked it and picked apply but when the server restarted both had been updated!

                          It's good that someone has taken over this plugin and it will be maintained as I've used this for about 15 years now and it has always worked well. 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.

                          Have you taken over development of Erland's other plugins too?

                          Comment


                            #14
                            Originally posted by MillmoorRon View Post
                            Thank you. Successfully reverted to version 2.

                            I had 2 available plugin updates and the Dynamic Playlist one showed the warning about uninstalling the old one first so I unchecked it and picked apply but when the server restarted both had been updated!

                            It's good that someone has taken over this plugin and it will be maintained as I've used this for about 15 years now and it has always worked well. 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.

                            Have you taken over development of Erland's other plugins too?
                            I have noticed before that updates get installed even if you uncheck them.

                            Sent from my Pixel 3a using Tapatalk
                            Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                            Bedroom: Radio
                            Bathroom: Radio

                            Comment


                              #15
                              I wouldn't call it a bug, but more of a design feature

                              First, off, thank you for picking this up and updating it. The Dynamic Playlists are very valuable to me, and I was happy to see a newer version after so long.

                              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.

                              I tried to go into the dynamicplaylists.prefs and update this through there (I did not bounce the service afterwards, so that might be the trick that will solve the issue), but my updated values didn't appear to take.

                              Any chance the max values could be updated to some very large number?

                              Update: I just noticed that once the playlist gets to the end (aka 50), it automatically adds more songs to the end. Not exactly what I was expecting, but it does work. I will leave my original message, but it is most certainly not as important as it once was.
                              Last edited by trmonnig; 2021-09-26, 22:33.

                              Comment

                              Working...
                              X