You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.5 KiB
63 lines
1.5 KiB
12 months ago
|
If the default collection files do not allow you to create the collections you want, you can define your own collections in your own collection files to do whatever you like within the capabilities of PMM. We will create a simple collection that will contain 20 comedy movies released since 2012.
|
||
2 years ago
|
|
||
12 months ago
|
First, open the collection file [this will create the file if it doesn't already exist]:
|
||
2 years ago
|
|
||
1 year ago
|
=== ":fontawesome-brands-linux: Linux"
|
||
2 years ago
|
|
||
1 year ago
|
[type this into your terminal]
|
||
|
|
||
|
```
|
||
|
nano "config/Movies.yml"
|
||
|
```
|
||
2 years ago
|
|
||
1 year ago
|
=== ":fontawesome-brands-apple: macOS"
|
||
|
|
||
|
[type this into your terminal]
|
||
|
|
||
|
```
|
||
|
notepad "config\Movies.yml"
|
||
|
```
|
||
|
|
||
|
=== ":fontawesome-brands-windows: Windows"
|
||
|
|
||
|
[type this into your terminal]
|
||
|
|
||
|
```
|
||
|
notepad "config\Movies.yml"
|
||
|
```
|
||
2 years ago
|
|
||
|
|
||
2 years ago
|
In this file, add the following, exactly as it is shown here; remember that spacing is significant in YAML files:
|
||
2 years ago
|
|
||
|
```yaml
|
||
|
collections:
|
||
|
Recent Comedy:
|
||
|
plex_search:
|
||
|
all:
|
||
|
genre: Comedy
|
||
|
year.gte: 2012
|
||
|
limit: 20
|
||
|
```
|
||
|
|
||
|
Save the file:
|
||
|
|
||
1 year ago
|
{%
|
||
|
include-markdown "./wt-save.md"
|
||
|
%}
|
||
2 years ago
|
|
||
|
Next, add a reference to this file to your config file.
|
||
|
|
||
|
Open the config file again and add the last line shown below:
|
||
|
|
||
|
```yaml
|
||
|
libraries:
|
||
2 years ago
|
All The Movies:
|
||
12 months ago
|
collection_files:
|
||
2 years ago
|
- pmm: basic
|
||
|
- pmm: imdb
|
||
2 years ago
|
# see the wiki for how to use local files, folders, URLs, or files from git
|
||
2 years ago
|
- file: config/Movies.yml ## <<< ADD THIS LINE
|
||
2 years ago
|
```
|
||
|
|
||
2 years ago
|
That line needs to match the path you used when you created the file a moment ago. If you are copy-pasting these commands, it does.
|