Plex-Meta-Manager/docs/home/guides/wt/wt-05-local-file.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

If the default metadata files do not allow you to create the collections you want, you can define your own collections in your own metadata 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.
2022-12-10 17:31:13 +00:00
First, open the metadata file [this will create the file if it doesn't already exist]:
````{tab} Linux
[type this into your terminal]
```
nano "config/Movies.yml"
```
````
````{tab} OS X
2022-12-10 17:31:13 +00:00
[type this into your terminal]
```
nano "config/Movies.yml"
```
````
````{tab} Windows
2022-12-10 17:31:13 +00:00
[type this into your terminal]
```
notepad "config\Movies.yml"
```
````
In this file, add the following, exactly as it is shown here; remember that spacing is significant in YAML files:
2022-12-10 17:31:13 +00:00
```yaml
collections:
Recent Comedy:
plex_search:
all:
genre: Comedy
year.gte: 2012
limit: 20
```
Save the file:
```{include} wt/wt-save.md
```
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:
All The Movies:
2022-12-10 17:31:13 +00:00
metadata_path:
- pmm: basic
- pmm: imdb
2022-12-10 17:31:13 +00:00
# see the wiki for how to use local files, folders, URLs, or files from git
- file: config/Movies.yml ## <<< ADD THIS LINE
2022-12-10 17:31:13 +00:00
```
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.