Announce: Music & Artist Information plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mherger
    Babelfish's Best Boy
    • Apr 2005
    • 24640

    Announce: Music & Artist Information plugin

    >>> Would you want to have this for non-local tracks only?
    >
    > It would be nice to have it for all tracks since the integration is very
    > good and useful.


    I'm not sure I understand what exactly the request is. Could you please
    try again for me? :-)
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)
  • mherger
    Babelfish's Best Boy
    • Apr 2005
    • 24640

    #2
    Announce: Music & Artist Information plugin

    I'm happy to announce the Music & Artist Information plugin v0.1.0. As I got increasingly frustrated with the ugly code for the AlbumReview and Biography plugins, I decided to start from scratch and create something "better". It should not only be easier to maintain, but offer new features and be open to be easily extended.





    The new Music & Artist Information plugin still gives you access to almusic.com's album reviews and biographies. But it adds a whole lot to it: links to the artists' websites, blogs, news. Videos from youtube, dailymotion and others. Links to album contributors and related artists. A never-ending network of music background information.





    Music & Artist Info (MAI) can display album artwork, artist pictures, pdf and html files associated with an artist. The plugin assumes the Artist/Album folder structure and will add "Local Artwork" and "Text files from music folder" menu items in the "M"ore menu when local files are found.

    The "local artwork" will give you access to any artwork file stored inside the album's folder.

    "Text files from music folder" will display pdf, html and txt files such as booklets provided with digital downloads that are stored inside the album's folder.

    There is a bit of special treatment for the bio.html: the plugin would actually walk up a few folder levels searching for anything bio*, assuming that most users have an Artist/Album folder structure.

    Artist pictures are either stored as artist.jpg/png in an album folder, or as "artist name.jpg/png" in the configurable one for all artists images folder.

    Obviously not all of these goodies work on all UIs. You'd get the richest access in the web UI obviously. Some apps can deal with the web based content as well - a tablet should give you great access to most features.

    Have fun!
    Last edited by mherger; 2018-07-27, 05:34.
    Michael

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

    Comment

    • aubuti
      Senior Member
      • Oct 2005
      • 8889

      #3
      Very cool, Michael. Thanks, and I look forward to playing with it.
      Main system: SB3 > Emotiva XDA-1 > NAD C 325BEE > Vandersteen 1
      Living room: SB2 > Audioengine HD6
      Kitchen/dining: SB2 > AudioSource AMP 100 > 2-pairs of Polk Audio RC60i in-ceiling speakers
      Deck/patio: SB Receiver > AudioSource AMP 100 > Polk Atrium 45
      Study: Squeezelite-X on Win10 laptop with cheapo Logitech speakers
      Bedroom: SB Radio
      Quiet time: Hifiman Sundara headphones plugged into NAD amp or iPhone + AudioQuest Dragonfly Red DAC/amp
      LMS 8.5 running on a Raspberry Pi3 (piCore), controlled using iPeng and SB Controllers

      Comment

      • garym
        Senior Member
        • May 2008
        • 13540

        #4
        Very nice idea. I've been playing with this installed on a Win7 machine running LMS 7.8. It installs, I see the options, can click on, say, Artist Information, and get the list of "biography", etc. But selecting anything simply tries to connect to something on web and never connects. Eventually times out. The only thing I've made work is clicking WEBSITES in the listing after ARTIST INFORMATION. This gives me different website options (amazon, official, etc.) and opens a different tab with the website I choose.

        What am I doing wrong?

        edit: I've tried this with several artists, all well known (i.e., The Beatles)
        Home: Pi4B-8GB/pCP8.2.x/4TB USB>LMS 8.5.x>Transporter, Touch, Boom, Radio (all ethernet)
        Cottage: rPi4B-4GB/pCP8.2.x/4TB USB>LMS 8.5.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
        Office: Win11(64)>foobar2000
        The Wild: rPi3B+/pCP7.x/4TB USB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
        Controllers: Material Skin, iPhone14Pro & iPadAir5 (iPeng), or CONTROLLER
        Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

        Comment

        • bonze
          Senior Member
          • Jun 2006
          • 1502

          #5
          I'm getting similar to garym

          Biography, Artist Details, Related Artists & Pictures just 'hang' - even for Adele...

          In the log is:

          [13-08-28 21:08:57.5361] Slim::Networking::IO::Select::__ANON__ (147) Error: Select task failed calling Slim::Web::HTTP:rocessHTTP: Can't locate object method "no_expand_entities" via package "HTML::TreeBuilder" at C:\Documents and Settings\All Users\Application Data\Squeezebox\Cache\InstalledPlugins/Plugins/MusicArtistInfo/AllMusic.pm line 601.
          ; fh=Slim::Web::HTTP::ClientConn=GLOB(0xb152e3c)
          LMS Version: 8.2
          Synology 216+II & Docker
          2x Touch, 2x SB3

          Comment

          • garym
            Senior Member
            • May 2008
            • 13540

            #6
            yep, I see same log error:

            [13-08-28 15:21:45.0885] Slim::Networking::IO::Select::__ANON__ (147) Error: Select task failed calling Slim::Web::HTTP:rocessHTTP: Can't locate object method "no_expand_entities" via package "HTML::TreeBuilder" at C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/MusicArtistInfo/AllMusic.pm line 601.
            Home: Pi4B-8GB/pCP8.2.x/4TB USB>LMS 8.5.x>Transporter, Touch, Boom, Radio (all ethernet)
            Cottage: rPi4B-4GB/pCP8.2.x/4TB USB>LMS 8.5.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
            Office: Win11(64)>foobar2000
            The Wild: rPi3B+/pCP7.x/4TB USB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
            Controllers: Material Skin, iPhone14Pro & iPadAir5 (iPeng), or CONTROLLER
            Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

            Comment

            • mherger
              Babelfish's Best Boy
              • Apr 2005
              • 24640

              #7
              Announce: Music & Artist Informationplugin

              Sounds like some dependency issue. Are you seeing this problem on Windows only? I see you mention Vortexbox in your signature, but the error message is from Windows?

              > Am 28.08.2013 um 22:50 schrieb garym <garym.60swcn (AT) no-mx (DOT) forums.slimdevices.com>:
              >
              >
              > yep, I see same log error:
              >
              > [13-08-28 15:21:45.0885] Slim::Networking::IO::Select::__ANON__ (147)
              > Error: Select task failed calling Slim::Web::HTTP:rocessHTTP: Can't
              > locate object method "no_expand_entities" via package
              > "HTML::TreeBuilder" at
              > C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/MusicArtistInfo/AllMusic.pm
              > line 601.
              >
              >
              >
              > *Location 1:* VortexBox Appliance 4TB (2.2) > LMS 7.7.2 > Transporter,
              > Touch, Boom, Radio w/Battery (all ethernet)
              > *Location 2:* VBA 3TB (2.2) > LMS 7.7.2 > Touch > Benchmark DAC I, Boom,
              > Radio w/Battery (all ethernet except Radio)
              > *Office:* Win7(64) > LMS 7.8 > SqueezePlay
              > *Spares:* VBA 4TB, SB3, Touch (3), Radio (3), CONTROLLER
              > *Controllers:* iPhone4S (iPeng), iPad2 (iPengHD & SqueezePad),
              > CONTROLLER, or SqueezePlay 7.7 on Win7(64) laptop
              > Ripping (FLAC) - dbpoweramp, Tagging - mp3tag, Spotify
              > ------------------------------------------------------------------------
              > garym's Profile: http://forums.slimdevices.com/member.php?userid=17325
              > View this thread: http://forums.slimdevices.com/showthread.php?t=99537
              >
              >
              Michael

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

              Comment

              • garym
                Senior Member
                • May 2008
                • 13540

                #8
                Originally posted by mherger
                Sounds like some dependency issue. Are you seeing this problem on Windows only? I see you mention Vortexbox in your signature, but the error message is from Windows?
                OK. Now i've installed on my vortexbox (fedora linux) machine at home. LMS 7.7.2. Works fine with immediate response. So the problem I had earlier with the LMS 7.8 on win7 does NOT happen with my vortexbox LMS 7.7.2.
                Home: Pi4B-8GB/pCP8.2.x/4TB USB>LMS 8.5.x>Transporter, Touch, Boom, Radio (all ethernet)
                Cottage: rPi4B-4GB/pCP8.2.x/4TB USB>LMS 8.5.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
                Office: Win11(64)>foobar2000
                The Wild: rPi3B+/pCP7.x/4TB USB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
                Controllers: Material Skin, iPhone14Pro & iPadAir5 (iPeng), or CONTROLLER
                Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

                Comment

                • mherger
                  Babelfish's Best Boy
                  • Apr 2005
                  • 24640

                  #9
                  Announce: Music &amp; Artist Informationplugin

                  >> Sounds like some dependency issue.

                  Figured out LMS already comes with the HTML::TreeBuilder module which I
                  included in the plugin as well. But I was using an option which is not
                  available in the (rather outdated) version shipped with LMS.

                  v0.2.0 should fix this issue.

                  --

                  Michael
                  Michael

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

                  Comment

                  • Mnyb
                    Senior Member
                    • Feb 2006
                    • 16539

                    #10
                    A stupid Q : Are we to uninstall biography and album review ? Do they conflict in the UI's ?
                    --------------------------------------------------------------------
                    Main hifi: Rasbery PI digi+ MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
                    Bedroom/Office: Boom
                    Loggia: Raspi hifiberry dac + Adams
                    Bathroom : Radio (with battery)
                    iPad with iPengHD & SqueezePad
                    (spares Touch, SB3, reciever ,controller )
                    server Intel NUC Esxi VM Linux mint 18 LMS 7.9.2

                    http://people.xiph.org/~xiphmont/demo/neil-young.html

                    Comment

                    • mherger
                      Babelfish's Best Boy
                      • Apr 2005
                      • 24640

                      #11
                      Announce: Music &amp; Artist Informationplugin

                      > A stupid Q : Are we to uninstall biography and album review ? Do they
                      > conflict in the UI's ?


                      No, they can be installed in parallel - if you don't mind the clutter in
                      some menus :-)

                      --

                      Michael
                      Michael

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

                      Comment

                      • bonze
                        Senior Member
                        • Jun 2006
                        • 1502

                        #12
                        Originally posted by mherger
                        >> Sounds like some dependency issue.

                        Figured out LMS already comes with the HTML::TreeBuilder module which I
                        included in the plugin as well. But I was using an option which is not
                        available in the (rather outdated) version shipped with LMS.

                        v0.2.0 should fix this issue.

                        --

                        Michael
                        Works OK now - thankyou
                        LMS Version: 8.2
                        Synology 216+II & Docker
                        2x Touch, 2x SB3

                        Comment

                        • Roland0
                          Senior Member
                          • Aug 2012
                          • 1343

                          #13
                          Interesting. Back when I implemented something similar for extGUI4LMS, I also had a look at AllMusic in comparison to discogs.
                          In the end, I decided to use discogs as it has
                          - more albums available
                          - some info available AllMusic doesn't (eg. videos, artist links)
                          - an officially free-to-use API to access the data (I'm still a bit confused by rovi's eval licence, but it seems not to cover free/oss SW - your plugin also uses screen-scraping and not rovi's API...)

                          otoh, AllMusic has some advantages as well
                          - some info available discogs doesn't (eg. album reviews (actually available on the website, but doesn't seem to be exposed in the API), related artists/albums)
                          - sometimes more in-depth/professional biographical information about artists
                          - sometimes more in-depth/professional album reviews

                          Why did you chose AllMusic?
                          Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
                          Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

                          Comment

                          • mherger
                            Babelfish's Best Boy
                            • Apr 2005
                            • 24640

                            #14
                            Announce: Music &amp; Artist Informationplugin

                            > Why did you chose AllMusic?

                            It's the service I knew would give me good results. I didn't do any
                            further research. While I did consider Last.fm (because it has localized
                            content), I think AllMusic has better quality content. And when I saw your
                            implementation I did a quick check on discogs as well, but didn't do any
                            serious research.

                            That said I might add Last.fm (and/or others like discogs) support in the
                            future, as an option for those who prefer non-English content. The new
                            code should be much simpler to extend and adjust than the old one.

                            Some of the current implementation is already using the.echonest.com
                            (blogs, news, websites, videos) as an alternative resource for data.

                            --

                            Michael
                            Michael

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

                            Comment

                            • Stig Nygaard
                              Senior Member
                              • Feb 2006
                              • 350

                              #15
                              Dead link

                              FYI, following the "More info" link on the LMS Plugins tab in Server Settings gives you a 404 Not Found for http://www.herger.net/MusicArtistInfo/

                              But it is probably on your to-do. I see the plugin ain't listed on http://www.herger.net/slim-plugins/ either...
                              /Stig
                              rockland.dk - last.fm/user/rockland - discogs.com/user/StigNygaard - flickr.com/photos/stignygaard
                              Server: LMS 8.1.1(LmsUpdate) - 1610364019 @ Jan 14 2021 on Synology DS716+II (DSM6.2+Perl5.24). Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Main HiFi: Marantz PM6005 & F3/Lyd Audiovector 2.

                              Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

                              Comment

                              Working...