#sort_title usage and collection_section for custom collections?

1 messages · Page 1 of 1 (latest)

restive veldt
#

I'm building some collections besides several pmm default collections. I want them to be sorted after the default/basic ones (sort title starting with !020_)
but before the genres (starting with !060_).
For now I've done it like so in my movies_collections.yml file:
collections:
Films With A Good Heart:
letterboxd_list: https://letterboxd.com/darrencb/list/films-with-a-good-heart/
collection_order: custom
sync_mode: append
sort_title: '!021_Films With A Good Heart'
summary: Films that promote caring and understanding. Films with good intentions.

I was wondering if there was a better way to manage sort_title? So that I don't have to include the collection title again. I saw that one could use collection_section as template variable in the config file, but that doesn't seem to work for collection files (invalid variable).

wheat crystalBOT
#

Welcome @restive veldt!

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.

zinc burrow
#

collection_section and template_variables are specific to the defaults

restive veldt
#

Exactly

#

So is there a better way, or am I doing it as the developers intended?

zinc burrow
#

you are doing it the correct way

restive veldt
#

Hmm ok. Is there a plan to deal with this duplication? Basically the only thing I want to input is '021', not '!021_Films With A Good Heart'

zinc burrow
#

then put just !021 you dont have to put the collection name

#

the sort title can be anything you want so long as it sorts the way you want

restive veldt
#

Oh so when there are multiple collections with sort title '!021' it will sort those alphabetically?

zinc burrow
#

well no it wont

restive veldt
#

:/

zinc burrow
#

you could also make a template and do

sort_title: !20_<<collection_name>>
#

that would make it !021_Films With A Good Heart

restive veldt
#

That looks very good. Can I just use <<collection_name>> in my collections.yml file or do I need to do something for this "template"?

zinc burrow
#
templates:
  Actor:
    plex_search:
      all:
        actor: tmdb
    tmdb_person: <<person>>
    sort_title: "!_<<collection_name>>"
    sync_mode: sync
    collection_order: release
collections:
  Bruce Lee:
    template: {name: Actor, person: 19429}
  Chris Pratt:
    template:
      name: Actor
      person: 73457

is a good example

restive veldt
#

Ahhh nice. So then I also don't have to mention sync_mode etc for every collection

zinc burrow
#

anything thats in the template wont have to be written multiple times for every collection in that file

restive veldt
zinc burrow
#

and if they all use letterboxd lists you could do

templates:
  letterboxd:
    letterboxd_list: https://letterboxd.com/<<user>>/list/<<list>>

then do

collections:
  Films:        
    template: {name: letterboxd, user: darrencb, list: films-with-a-good-heart}
restive veldt
restive veldt
restive veldt
#

Bookmarked. I would never have found that lol

zinc burrow
#

they are linked in the wiki

#

well looks like the links are broken

restive veldt
#

Thanks again, you guys work tirelessly. Hats off to you