#Formatting error on yaml?

1 messages · Page 1 of 1 (latest)

neat plankBOT
#

Welcome @limber forum!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

limber forum
dusty wigeonBOT
#

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
carmine chasm
#

Is there a question or error here?

dusty wigeonBOT
#

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

limber forum
# carmine chasm Is there a question or error here?

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.

carmine chasm
#

"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.

limber forum
#

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"

carmine chasm
#

Can you provide the full log rather than a screenshot of the summary?

limber forum
#

Thank you, sorry I wasn’t the most helpful with the screenshotting. I will try this code tomorrow. Fingers crossed!

limber forum
#

Unfortunately the code above also did not work. Still resulted in "error: cannot have more than one base"

tepid galleon
#
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" 
limber forum
#

THANK YOU!!! It worked 😄