[Enhancement]: Ignore file similar to .gitignore and .plexignore #1042

Open
opened 2026-02-20 10:06:03 -05:00 by deekerman · 15 comments
Owner

Originally created by @hypnotoad08 on GitHub (Apr 1, 2023).

Describe the feature/enhancement

This is a minor feature request as it doesn't affect functionality. I noticed that the Library files section for some of the audiobook files I have moved to my shared Audiobook folder on my Synology NAS are showing some hidden files/folders that are created by the NAS. Can the Library files section filter out these hidden files/folders?
@eaDir

Originally created by @hypnotoad08 on GitHub (Apr 1, 2023). ### Describe the feature/enhancement This is a minor feature request as it doesn't affect functionality. I noticed that the Library files section for some of the audiobook files I have moved to my shared Audiobook folder on my Synology NAS are showing some hidden files/folders that are created by the NAS. Can the Library files section filter out these hidden files/folders? ![@eaDir](https://user-images.githubusercontent.com/842086/229292817-d4e041a1-f7dd-4419-9813-f40e12d96c2a.jpg)
Author
Owner

@CLHatch commented on GitHub (Apr 1, 2023):

This is handled by Plex with .plexignore files that can be created to specify patterns of files/folders to be ignored. Something similar could be created for ABS. https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/

@CLHatch commented on GitHub (Apr 1, 2023): This is handled by Plex with `.plexignore` files that can be created to specify patterns of files/folders to be ignored. Something similar could be created for ABS. https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/
Author
Owner

@CLHatch commented on GitHub (Apr 1, 2023):

SyncThing has a similar file you can use to set files/folders to ignore.

@CLHatch commented on GitHub (Apr 1, 2023): SyncThing has a similar file you can use to set files/folders to ignore.
Author
Owner

@advplyr commented on GitHub (Apr 2, 2023):

You can use a .ignore file

@advplyr commented on GitHub (Apr 2, 2023): You can use a `.ignore` file
Author
Owner

@raphpa commented on GitHub (Apr 14, 2023):

It is a little bit more complicated with the @eaDir folder. The NAS creates it automatically in every folder with media in it. So if you have your library sorted in subfolders you would have to manually put the .ignore file manually into every single one of them.
A global ignore option would be great for this case, especially if you autopopulate your library.

@raphpa commented on GitHub (Apr 14, 2023): It is a little bit more complicated with the `@eaDir` folder. The NAS creates it automatically in every folder with media in it. So if you have your library sorted in subfolders you would have to manually put the `.ignore` file manually into every single one of them. A global ignore option would be great for this case, especially if you autopopulate your library.
Author
Owner

@hypnotoad08 commented on GitHub (Apr 14, 2023):

Yes I was hoping for a global fix

@hypnotoad08 commented on GitHub (Apr 14, 2023): Yes I was hoping for a global fix
Author
Owner

@theolike commented on GitHub (Apr 24, 2023):

Agreed. It has to be a configurable global filter. While this one is specifically a Synology quirk, there are many other systems that use a similar process for indexing, thumbnails, etc. For example, Windows and it's thumbs.db files. I haven't been through the indexer code yet (and I guess I should do that), but is there already filter logic in it, even if for only a hard coded list?

(Also, no matter what kind of spoon you are, "Journey before destination", Radiant.)

@theolike commented on GitHub (Apr 24, 2023): Agreed. It has to be a configurable global filter. While this one is specifically a Synology quirk, there are many other systems that use a similar process for indexing, thumbnails, etc. For example, Windows and it's thumbs.db files. I haven't been through the indexer code yet (and I guess I should do that), but is there already filter logic in it, even if for only a hard coded list? (Also, no matter what kind of spoon you are, "Journey before destination", Radiant.)
Author
Owner

@CLHatch commented on GitHub (Apr 24, 2023):

Agreed. It has to be a configurable global filter. While this one is specifically a Synology quirk, there are many other systems that use a similar process for indexing, thumbnails, etc. For example, Windows and it's thumbs.db files. I haven't been through the indexer code yet (and I guess I should do that), but is there already filter logic in it, even if for only a hard coded list?

(Also, no matter what kind of spoon you are, "Journey before destination", Radiant.)

Yeah, I actually just had to add an "ignore" option for one other folder in my SyncThing shares. I noticed that .@__thumb folders kept appearing in folders. It contained thumbnails of various sizes. Ends up, someone else in the share has a QNAP, it creates them. Added (?d).@__thumb, and all good (the (?d) tells SyncThing it's ok to delete the files if it's needed to delete the parent folder. Obviously flags like that aren't needed for ABS.)

@CLHatch commented on GitHub (Apr 24, 2023): > Agreed. It has to be a configurable global filter. While this one is specifically a Synology quirk, there are many other systems that use a similar process for indexing, thumbnails, etc. For example, Windows and it's thumbs.db files. I haven't been through the indexer code yet (and I guess I should do that), but is there already filter logic in it, even if for only a hard coded list? > > (Also, no matter what kind of spoon you are, "Journey before destination", Radiant.) Yeah, I actually just had to add an "ignore" option for one other folder in my SyncThing shares. I noticed that `.@__thumb` folders kept appearing in folders. It contained thumbnails of various sizes. Ends up, someone else in the share has a QNAP, it creates them. Added `(?d).@__thumb`, and all good (the `(?d)` tells SyncThing it's ok to delete the files if it's needed to delete the parent folder. Obviously flags like that aren't needed for ABS.)
Author
Owner

@DDriggs00 commented on GitHub (Jul 9, 2023):

Additionally, when deleting an item from the library only (not filesystem), it would be useful to add an option to create an ignore file on the offending directory.

@DDriggs00 commented on GitHub (Jul 9, 2023): Additionally, when deleting an item from the library only (not filesystem), it would be useful to add an option to create an ignore file on the offending directory.
Author
Owner

@iconoclasthero commented on GitHub (Sep 17, 2023):

mpd also has this and it would be useful to have .absignore similar to .mpdignore

@iconoclasthero commented on GitHub (Sep 17, 2023): mpd also has this and it would be useful to have .absignore similar to .mpdignore
Author
Owner

@nichwall commented on GitHub (Dec 8, 2023):

Doing a bit of research tonight looks like node-ignore may be a useful package for adding an ignore list. Just putting this here for reference. I couldn't find many resources for creating ignore list functionality (just kept getting references of how to use gitignore, plexignore, etc, not actual implementations)

https://github.com/kaelzhang/node-ignore

Edit to add: To add this to the UI, I think this would fit best as a new tab on library settings (so library specific ignores and only one set of ignores per library). There can either be a few default values with a "reset to defaults button", or a link to some documentation with some "good default values" that users need to manually enter. Similar to the SyncThing interface as mentioned before.

@nichwall commented on GitHub (Dec 8, 2023): Doing a bit of research tonight looks like `node-ignore` may be a useful package for adding an ignore list. Just putting this here for reference. I couldn't find many resources for creating ignore list functionality (just kept getting references of how to use gitignore, plexignore, etc, not actual implementations) https://github.com/kaelzhang/node-ignore Edit to add: To add this to the UI, I think this would fit best as a new tab on library settings (so library specific ignores and only one set of ignores per library). There can either be a few default values with a "reset to defaults button", or a link to some documentation with some "good default values" that users need to manually enter. Similar to the SyncThing interface as mentioned before.
Author
Owner

@rage1337 commented on GitHub (Dec 28, 2023):

Found a workaround for my use case (described here):
This approach helps me to exclude my workfolder: Stackoverflow

Added the line

- /audiobooks/_
the to the volume config of my docker-compose.yml
The folder is there, but empty inside the container.

@rage1337 commented on GitHub (Dec 28, 2023): Found a workaround for my use case (described [here):](https://github.com/advplyr/audiobookshelf/issues/2460) This approach helps me to exclude my workfolder: [Stackoverflow](https://stackoverflow.com/a/37898591/5097619) Added the line ` - /audiobooks/_ ` the to the volume config of my docker-compose.yml The folder is there, but empty inside the container.
Author
Owner

@iconoclasthero commented on GitHub (Apr 5, 2024):

I think i put a FR in for this. I don't know what's going on above, but I could use this right now. Also, I'd want to behave the way that .mpdignore behaves so I could put tmp in .absignore in the root of the library and be done with it.

@iconoclasthero commented on GitHub (Apr 5, 2024): I think i put a FR in for this. I don't know what's going on above, but I could use this right now. Also, I'd want to behave the way that .mpdignore behaves so I could put `tmp` in .absignore in the root of the library and be done with it.
Author
Owner

@chinajuanbob commented on GitHub (Dec 30, 2024):

Any updates or solution for this? Thx!

@chinajuanbob commented on GitHub (Dec 30, 2024): Any updates or solution for this? Thx!
Author
Owner

@nichwall commented on GitHub (Feb 24, 2025):

2.19.5 updated the ignore list. There is still not a user configurable option, but the framework is there to more easily add vendor specific folders and extensions.

https://github.com/advplyr/audiobookshelf/pull/4031

@nichwall commented on GitHub (Feb 24, 2025): 2.19.5 updated the ignore list. There is still not a user configurable option, but the framework is there to more easily add vendor specific folders and extensions. https://github.com/advplyr/audiobookshelf/pull/4031
Author
Owner

@SAS-1 commented on GitHub (Feb 24, 2025):

Nice one kicked off a scan and all the eadir is gone.

@SAS-1 commented on GitHub (Feb 24, 2025): Nice one kicked off a scan and all the eadir is gone.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf-advplyr#1042
No description provided.