Jump to content

How to ignore the folder containing .embyignore?


Recommended Posts

Posted

I have folders named .hidden in which I previously had empty files named .ignore. This was sufficient to hide the entire folder from Emby.

The folders reappeared due to the changes in 4.9, so I renamed the .ignore files to .embyignore and put an asterisk in each one. I rescanned my files but the .hidden folders are still showing up in Emby.

For example, I have folders:

  • TV/Programs/Girl Code (2015)/.hidden
  • TV/Programs/Girl Code (2015)/Specials
  • TV/Programs/Girl Code (2015)/Season 1
  • TV/Programs/Girl Code (2015)/Season 2
  • TV/Programs/Girl Code (2015)/Season 3
  • TV/Programs/Girl Code (2015)/Season 4

Inside .hidden is the .embyignore file along with some conversion notes and scripts—no playable content.

Emby (web & Roku) shows .hidden as a "season" of the TV show, with no content. What's the trick to getting rid of it again?

Happy2Play
Posted (edited)

Think you have to change the content of the embyignore file as the wildcard only ignores the files not the folder

Quote
  • To ignore all files in a folder, place an .embyignore file containing a * in the folder that is to be ignored.

Where you want to ignore the folder also 

Quote
  • To ignore a folder private-vids and all files and folders below it, place an .embyignore file containing private_vids/* in the root folder of the library.

.embyignore containing .hidden/* in Girl Code (2015) folder

Excluding Files & Folders | Emby Documentation

Edited by Happy2Play
Posted (edited)

That does not work, probably because the show's folder is not the root folder of the library.

If I put .embyignore in the library's appropriate root folder, and then reference the .hidden folder(s) relative to that location, then it works:

*/.hidden
*/*/.hidden
*/*/*/.hidden

This seems less than ideal though. There seems to be no way to ignore the folder containing .embyignore like the old system did.

If you are going to have * ignore all the files, why not also ignore the folder itself? Or if the containing folder must be explicitly mentioned, give us a way to do it from within the file, e.g. using a dot (.) or slash dot (/.). Or for a root-level .embyignore, give us a way to easily match a pattern at any depth.

 

 

Edited by Fweep

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...