Announcement

Collapse
No announcement yet.

piCorePlayer -- Patching Plugin and keeping it persistent on reboot?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • piCorePlayer -- Patching Plugin and keeping it persistent on reboot?

    Using the advice of local.bin (this post here), I've managed to have Slimserver scrobble to my Maloja instance using the Last.fm plugin. Since I'm using piCorePlayer, I have to modify the file located at `/usr/local/slimserver/Slim/Plugin/AudioScrobbler/Plugin.pm` to do this. However, whenever I reboot my Pi, the file is erased. Is there a way to make it stay persistent, possibly with some form of cache or local overwrite file?
    Host: piCorePlayer on Raspberry Pi 4
    Music Room: Raspberry Pi 4 + 7" Touch Screen + Hifiberry DAC
    Bedroom: Squeezebox Radio
    Computer: Squeezelite + JDS Atom Amp+ + Sennheiser HD58X

  • #2
    piCorePlayer backup

    Comment


    • #3
      !!! I had no idea about the `.filetool.lst` file. Worked like a charm! You've just saved me countless hours of head scratching. Thank you!
      Host: piCorePlayer on Raspberry Pi 4
      Music Room: Raspberry Pi 4 + 7" Touch Screen + Hifiberry DAC
      Bedroom: Squeezebox Radio
      Computer: Squeezelite + JDS Atom Amp+ + Sennheiser HD58X

      Comment


      • #4
        Would you mind sharing your changes?
        Michael

        "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
        (LMS: Settings/Information)

        Comment


        • #5
          Originally posted by mherger
          Would you mind sharing your changes?
          Sure! All I had to do was the following:

          1. Change line 56 of /usr/local/slimserver/Slim/Plugin/AudioScrobbler/Plugin.pm

          from: use constant HANDSHAKE_URL => 'http://post.audioscrobbler.com/';
          to: use constant HANDSHAKE_URL => 'https://YOURMALOJAINSTANCEHERE/apis/audioscrobbler_legacy/';
          (use http or https, depending on what you need)

          2. Under "Last.fm Audioscrobbler" settings on LMS, enter whatever you want as a username. I just use "maloja". Enter your API key as the password

          3. Be sure to add the following to /opt/.filetool.lst​ :
          usr/local/slimserver/Slim/Plugin/AudioScrobbler/Plugin.pm

          (NO leading /)

          4. ???

          5. Profit
          Host: piCorePlayer on Raspberry Pi 4
          Music Room: Raspberry Pi 4 + 7" Touch Screen + Hifiberry DAC
          Bedroom: Squeezebox Radio
          Computer: Squeezelite + JDS Atom Amp+ + Sennheiser HD58X

          Comment


          • #6
            This is the self-hostable application (Python)
            Maloja

            Paul Webster
            Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
            and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

            Comment


            • #7
              Originally posted by Paul Webster
              This is the self-hostable application (Python)
              Maloja
              Ah, thank you for posting that. FWIW to people reading, I've been using this since the beginning of 2023, and it's worked flawlessly. Doesn't have all the features of Last.fm like recommendations, Album tracking, etc., but if you're just interested in tracking your listens and nothing else, it's perfect and private.
              Host: piCorePlayer on Raspberry Pi 4
              Music Room: Raspberry Pi 4 + 7" Touch Screen + Hifiberry DAC
              Bedroom: Squeezebox Radio
              Computer: Squeezelite + JDS Atom Amp+ + Sennheiser HD58X

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎