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 since 2012.
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.
First, open the metadata file [this will create the file if it doesn't already exist]:
First, open the metadata file [this will create the file if it doesn't already exist]:
@ -24,7 +24,7 @@ notepad "config\Movies.yml"
```
```
````
````
In this file, add the following, exactly as it is shown here:
In this file, add the following, exactly as it is shown here; remember that spacing is significant in YAML files:
```yaml
```yaml
collections:
collections:
@ -47,12 +47,12 @@ Open the config file again and add the last line shown below:
```yaml
```yaml
libraries:
libraries:
Main Movies: ## <<<CHANGETHISLINE
All The Movies:
metadata_path:
metadata_path:
- pmm: basic # This is a file within the defaults folder in the Repository
- pmm: basic
- pmm: imdb # This is a file within the defaults folder in the Repository
- pmm: imdb
# see the wiki for how to use local files, folders, URLs, or files from git
# see the wiki for how to use local files, folders, URLs, or files from git
- file: config/Movies.yml
- file: config/Movies.yml ## <<<ADDTHISLINE
```
```
That line needs to match the path you used when you created the file a moment 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.