Coder Social home page Coder Social logo

Comments (2)

meisnate12 avatar meisnate12 commented on August 16, 2024 1

Currently No

from kometa.

meisnate12 avatar meisnate12 commented on August 16, 2024 1

this has been added to develop. Now in addition to the default attribute I've added the optional attribute. You can give the optional attribute a list of variables. When the template is called by a collection if an optional variable is not used the whole attribute will be ignored. This allows you to do something like this.

templates:
  Actor:
    optional:
      - URL
      - FILE
    actor: tmdb
    tmdb_person: <<person>>
    url_poster: <<URL>>
    file_poster: <<FILE>>
    sort_title: +_<<collection_name>>
    sync_mode: sync
    collection_order: release
collections:
  Ben Affleck:
    template: {name: Actor, person: 880}
  Ben Stiller:
    template: {name: Actor, person: 7399}
  Bill Murray:
    template: {name: Actor, person: 1532, FILE: /images/Bill Murray.png}
  Brad Pitt:
    template: {name: Actor, person: 287, URL: https://theposterdb.com/api/assets/125584/view}
  

from kometa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.