#Formatting error on yaml?
1 messages · Page 1 of 1 (latest)
You can press the "Close Post" button above or type /close at any time to close this post.
Please use code blocks when sending any code-related text (such as error messages or configuration file extracts.)
The Grave Accent key (`) is used to define code blocks and is typically found to the left of the number 1 key on a standard keyboard.
If you are posting any yaml-formatted text (such as collections), you can add yaml to your Grave Accent keys for coloured formatting. See the below sample text and output
YOU TYPE THIS
```yaml
collections:
Documentaries:
smart_filter:
all:
genre: Documentary
```
DISCORD DISPLAYS
collections:
Documentaries:
smart_filter:
all:
genre: Documentary
Is there a question or error here?
Please avoid posting screenshots of text-like log output or your yaml configurations. They are very hard to read to find errors and we cannot scroll through the text to see other context. Post actual text instead, formatted with code-blocks (type !code for more info on this).
If you feel that it's too long, you can directly attach the entire file to your Discord message
Sorry, yes I have a question. It errored out. Is the formatting on this correct? I am having trouble including multiple networks in the creation of this collection. I also tried it as a list using brackets [netflix, hulu] etc.
"errored out" could mean a lot of things. Can you provide a log?
"All" and "Any" aren't typically capitalized, so maybe that's one of the mystery errors.
Also, you shouldn't have multiple "network"; that should be a list. Maybe that's an issue.
collections:
Recently Released Episodes - HD:
template: {name: suggest_home, poster: 256036}
smart_filter:
all:
episode_air_date: 7
any:
network: [Netflix, HBO, Hulu, Amazon Prime]
sort_by: release.desc
summary: "Newest TV shows on popular networks sorted by Episode Air Date"
"Cannot have more than one base"
Can you provide the full log rather than a screenshot of the summary?
Going by the examples here:
https://metamanager.wiki/en/latest/metadata/builders/smart.html#smart-filter-examples
I'd think you want:
collections:
Recently Released Episodes - HD:
template: {name: suggest_home, poster: 256036}
smart_filter:
all:
episode_air_date: 7
any:
network:
- Netflix
- HBO
- Hulu
- Amazon Prime
sort_by: release.desc
summary: "Newest TV shows on popular networks sorted by Episode Air Date"
Thank you, sorry I wasn’t the most helpful with the screenshotting. I will try this code tomorrow. Fingers crossed!
Unfortunately the code above also did not work. Still resulted in "error: cannot have more than one base"
collections:
Recently Released Episodes - HD:
template: {name: suggest_home, poster: 256036}
smart_filter:
all:
episode_air_date: 7
any:
network:
- Netflix
- HBO
- Hulu
- Amazon Prime
sort_by: release.desc
summary: "Newest TV shows on popular networks sorted by Episode Air Date"
THANK YOU!!! It worked 😄