Announcement

Collapse
No announcement yet.

Announce: Material Skin

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Announce: Material Skin

    > Code:
    > --------------------
    >
    > title: text.startsWith("<") ? text : ("<p>"+text+"</p>"),
    > type: "html",
    >
    > --------------------
    >
    >
    > ...this should cause all textarea's to be treated as HTML.


    That would indeed fix the issue. But single line items don't look that
    nicely middled any more.
    Michael

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

    Comment


    • Originally posted by cpd73
      Code:
      function replaceNewLines(str) {
          return str ? str.replace(/\n/g, "<br/>") : str;
      }
      ...does that help? Not 100% sure where the "\\n" came from, but I'm thinking it was proably an artist bio, review, or lyrics that had this.
      no viewable change

      Comment


      • Originally posted by cpd73
        Code:
                                                title: text.startsWith("<") ? text : ("<p>"+text+"</p>"),
                                                type: "html",
        ...this should cause all textarea's to be treated as HTML.
        no viewable change

        Inside Qobuz Plugin html becomes stripped for output in 'textarea' items.

        Comment


        • Announce: Material Skin

          > > title: text.startsWith("<") ? text : ("<p>"+text+"</p>"),
          > > type: "html",

          >
          > no viewable change
          >
          > Inside Qobuz Plugin html becomes stripped for output in 'textarea'
          > items.


          Did you restart LMS after changing the code? Flush the caches? This
          definitely worked for me.
          Michael

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

          Comment


          • Originally posted by mherger
            Did you restart LMS after changing the code?
            Sure, yes

            Flush the caches?
            Possibly not, I refreshed only the browser page.

            I checked it again and cleared the browser cache of Material site.
            Now it worked for me also, sorry for that mistake.

            Comment


            • Year and Artist name won't turn off in Album browsing

              Hello:

              I am running Material Skin under PiCorePlayer on a Pi2Design Mercury. All s/w is up to date.

              Problem I have is that despite display of Year and Artist being disabled (under "Interface" on Chassic settings screen--settings not listed in Material Skin) the Year and Artist still show in all Album views under Material Skin.

              Click image for larger version

Name:	Screen Shot 2022-05-06 at 9.01.30 AM.png
Views:	1
Size:	55.2 KB
ID:	1575046

              Click image for larger version

Name:	Screen Shot 2022-05-06 at 9.03.31 AM.jpg
Views:	1
Size:	99.4 KB
ID:	1575047

              Is there any way to adjust this? I find the display of year particularly distracting.
              And I imagine that the cause of this is also what causes Year to be displayed next to every track in the Queue.

              Please advise. Thanks.

              P.S. I do love Material Skin and just want to get these last wrinkles ironed out.

              Comment


              • Originally posted by mherger
                That would indeed fix the issue. But single line items don't look that
                nicely middled any more.
                Hmmm... What about:

                Code:
                title: text.startsWith("<") ? text : ("<div>"+text+"</div>"),
                i.e. use 'div' not 'p' ???
                Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

                Comment


                • Originally posted by Superdad
                  Problem I have is that despite display of Year and Artist being disabled (under "Interface" on Chassic settings screen--settings not listed in Material Skin) the Year and Artist still show in all Album views under Material Skin.
                  There's a reason Material does not show those settings, as it does not support them. Sorry, but year and artist is not configurable.
                  Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

                  Comment


                  • Originally posted by cpd73
                    There's a reason Material does not show those settings, as it does not support them. Sorry, but year and artist is not configurable.
                    Well that's disappointing!
                    I does not seem that it would be too hard to offer a setting for such. Especially since the Year has to be pulled from the file's metadata in the first place.

                    ----

                    On a separate note, what is the easiest and cleanest way to get album artwork loaded? In the scan of my 800 albums, only about 300 are showing artwork. For that same library in Apple iTunes/Music app I am only short about 100 album covers.

                    Sorry for the noob questions, I am not an LMS/Squeezlite or Linux maven.

                    Thanks again!
                    --Alex

                    Comment


                    • Originally posted by Superdad
                      Well that's disappointing!
                      I does not seem that it would be too hard to offer a setting for such. Especially since the Year has to be pulled from the file's metadata in the first place.

                      ----

                      On a separate note, what is the easiest and cleanest way to get album artwork loaded? In the scan of my 800 albums, only about 300 are showing artwork. For that same library in Apple iTunes/Music app I am only short about 100 album covers.

                      Sorry for the noob questions, I am not an LMS/Squeezlite or Linux maven.

                      Thanks again!
                      --Alex
                      Where is your album artwork located? The normal way for LMS is to have a cover.jpg or folder.jpg in the album folder. Embedded artwork also works.

                      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


                      • Or install Music and Artist Information plugin
                        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


                        • Originally posted by cpd73
                          Hmmm... What about:

                          Code:
                          title: text.startsWith("<") ? text : ("<div>"+text+"</div>"),
                          i.e. use 'div' not 'p' ???
                          Doesn't fix the layout problem, unfortunately.

                          Click image for larger version

Name:	Bildschirmfoto 2022-05-07 um 01.00.04.png
Views:	1
Size:	9.9 KB
ID:	1575051

                          But then it's not a big issue at all...
                          Michael

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

                          Comment


                          • Announce: Material Skin

                            > That would indeed fix the issue. But single line items don't look that
                            > nicely middled any more.


                            Thanks Craig! The latest revision from Github is looking great again!
                            And working with those two menu items.
                            Michael

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

                            Comment


                            • Originally posted by mherger
                              > That would indeed fix the issue. But single line items don't look that
                              > nicely middled any more.


                              Thanks Craig! The latest revision from Github is looking great again!
                              And working with those two menu items.
                              Thanks for the confirmation. I'll make a release soon - but having issues getting LMS running on my new dev laptop with Fedora 36 (missing perl libraries)
                              Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

                              Comment


                              • Announce: Material Skin

                                > issues getting LMS running on my new dev laptop with Fedora 36 (missing
                                > perl libraries)


                                Are you running 32 bit? What Perl version is it using?
                                Michael

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

                                Comment

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