Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Ability to add all videos in a folder to a collection #50

Open
rotj opened this issue Feb 3, 2022 · 0 comments
Open

[Feature] Ability to add all videos in a folder to a collection #50

rotj opened this issue Feb 3, 2022 · 0 comments

Comments

@rotj
Copy link

rotj commented Feb 3, 2022

I have this working in my fork. Let me know if you're interested in a pull request.

Some of my library is already grouped into folders that are equivalent to a collection, so the ability to put all movies in a folder into a collection makes for less work that defining each movie one by one.

My implementation of this adds an extra level to the YAML file. Under Title:, you have the list of titles as before. Under Path:, each item is a folder to search for movies in. It uses a literal substring search without regex tokens against the full path (including filename) of a movie so you don't have to escape any slashes, periods, brackets, or parentheses.

The existing YAML files of titles without nested lists are still supported.

I run Plex on Windows, so I haven't tested it against Linux pathnames.

Below is a sample YAML. It will match the movies Anchorman and Spaceballs by title. And it will match movies in L:\Movies\Comedy.

Comedy:
  Title:
    - Anchorman
    - Spaceballs
  Path:
    - L:\Movies\Comedy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant