Announcement

Collapse
No announcement yet.

[Announce] Exclude Files and Folders (aka. IgnoreDirREManager)

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

    [Announce] Exclude Files and Folders (aka. IgnoreDirREManager)

    > Then I tried just the folder name
    >
    > Code:
    > --------------------
    > \/06 - Songs From the West Coast 2001
    > --------------------


    I see a leading slash. Don't use it. It's to part of the folder name.

    --

    Michael
    Michael

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

    #2
    [Announce] Exclude Files and Folders (aka. IgnoreDirREManager)

    The little "Exclude Files and Folders" plugin allows you to define a regular expression to filter out files and folders during scans or while browsing the music folder. This can be useful to eg. hide all those "@eaDir" items your beloved NAS creates inside your music folders.

    Please be careful with what you do: by defining a generous regex you could easily hide large parts of your music collection :-).

    The possibility to exclude items based on a regex is not new. It's been there for more than a decade! Alas: there was no way to define that regex other than manipulating the prefs file. Which probably nobody ever did. This plugin therefore only exposes hat variable to you and does some very basic validation. Therefore please do NOT ask for more features which are not purely UI related...
    Michael

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

    Comment


      #3
      Originally posted by mherger View Post
      The little "Exclude Files and Folders" plugin allows you to define a regular expression to filter out files and folders during scans or while browsing the music folder. This can be useful to eg. hide all those "@eaDir" items your beloved NAS creates inside your music folders.

      Please be careful with what you do: by defining a generous regex you could easily hide large parts of your music collection :-).

      The possibility to exclude items based on a regex is not new. It's been there for more than a decade! Alas: there was no way to define that regex other than manipulating the prefs file. Which probably nobody ever did. This plugin therefore only exposes hat variable to you and does some very basic validation. Therefore please do NOT ask for more features which are not purely UI related...
      I tried excluding a folder by entering the full path under linux but regex101 shows errors using forward slashes. How should I specify the path I want ignored?

      Thanks
      Last edited by SlimChances; 2019-08-02, 16:48.
      Logitech Media Server Version: 8.4.0 - 1678519305 @ Sat 11 Mar 2023 08:54:37 AM CET
      Operating system: Debian - EN - utf8
      Platform Architecture: x86_64-linux
      Perl Version: 5.34.0 - x86_64-linux-gnu-thread-multi
      Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)​

      Comment


        #4
        Put a backslash in front of the slash to escape it.

        Comment


          #5
          Originally posted by karlek View Post
          Put a backslash in front of the slash to escape it.
          Thanks. that eliminated the errors shown at regex101, but I am still able to browse the folder in question both through "Music Folder" and Custom Browse by artist. I guess I do not understand how this plugin functions. I did a full clear and rescan first
          Logitech Media Server Version: 8.4.0 - 1678519305 @ Sat 11 Mar 2023 08:54:37 AM CET
          Operating system: Debian - EN - utf8
          Platform Architecture: x86_64-linux
          Perl Version: 5.34.0 - x86_64-linux-gnu-thread-multi
          Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)​

          Comment


            #6
            The plugin information says the following:
            "The comparison is done on the actual item only, not its full path! "



            Sent from my MI A2 Lite using Tapatalk

            Comment


              #7
              Originally posted by pinkdot View Post
              The plugin information says the following:
              "The comparison is done on the actual item only, not its full path! "



              Sent from my MI A2 Lite using Tapatalk
              so if I enter the full path or just the folder name it makes no difference. Afraid I don't understand how to use this plugin
              Logitech Media Server Version: 8.4.0 - 1678519305 @ Sat 11 Mar 2023 08:54:37 AM CET
              Operating system: Debian - EN - utf8
              Platform Architecture: x86_64-linux
              Perl Version: 5.34.0 - x86_64-linux-gnu-thread-multi
              Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)​

              Comment


                #8
                Originally posted by SlimChances View Post
                so if I enter the full path or just the folder name it makes no difference. Afraid I don't understand how to use this plugin
                If you want to exclude the folder A-B-C add that to the line:
                Code:
                ^A-B-C
                The folder will be excluded from the scan.

                Comment


                  #9
                  [Announce] Exclude Files and Folders(aka. IgnoreDirREManager)

                  > so if I enter the full path or just the folder name it makes no
                  > difference. Afraid I don't understand how to use this plugin


                  What did you enter? What did you try to match? What did you expect this
                  to do?

                  --

                  Michael
                  Michael

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

                  Comment


                    #10
                    Originally posted by mherger View Post
                    > so if I enter the full path or just the folder name it makes no
                    > difference. Afraid I don't understand how to use this plugin


                    What did you enter? What did you try to match? What did you expect this
                    to do?

                    --

                    Michael
                    I thought it would exclude folders from view and hopefully from play . I first entered the path to the folder
                    Code:
                    \/mnt\/Music\/Flac\/ROCK\/John, Elton\/06 - Songs From the West Coast  2001
                    and did a rescan.
                    Then I tried just the folder name
                    Code:
                    \/06 - Songs From the West Coast  2001

                    EDIT: I see if I remove the \/ from the second attempt it works. Will this remove the item from playlists and MusicIp or just from viewing when opening the artist folder?
                    Last edited by SlimChances; 2019-08-03, 00:12.
                    Logitech Media Server Version: 8.4.0 - 1678519305 @ Sat 11 Mar 2023 08:54:37 AM CET
                    Operating system: Debian - EN - utf8
                    Platform Architecture: x86_64-linux
                    Perl Version: 5.34.0 - x86_64-linux-gnu-thread-multi
                    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)​

                    Comment

                    Working...
                    X