#What is the value for these attributes? tmdb_airing_today: 30 tmdb_popular: 30 etc

1 messages · Page 1 of 1 (latest)

night flame
#

Quick question, what is the value for these attributes? tmdb_airing_today: 30 in the docs I see them all set to 30 and in the code it looks like the method name is used but I don't see what it does with the value elif method == "tmdb_airing_today":. My guess was that it was some sort of limit on results returned but that looks to be another attribute, limit = int(attrs.pop("limit"))
hmm well I guess limit is only for tmbd discover, but I still can't tell what the attribute that is set to 30 in the examples here is used for: https://metamanager.wiki/en/latest/metadata/builders/tmdb.html

coarse phoenixBOT
#

Welcome @night flame!

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.

shy echo
#

Limit the first 30 items in the list? So if the list of airing today is 40000, just return 30. That would be my guess

night flame
#

That's what I was thinking, that would be good

wild patio
#

I imagine that the data param is the 30, so it's going to get a pile of stuff from TMDb.tv_airing_today() then give you the first 30 [results.get_results(data)]

    def get_items(self, method, data, region, is_movie, result_type):
...
        elif method == "tmdb_airing_today":
            results = self.TMDb.tv_airing_today()
...
        return [(i.id, result_type) for i in results.get_results(data)]
night flame
#

ah yeah that makes sense

wild patio
#

Probably that should be explicitly called out.

night flame
#

It is ok to templatize the builders, something like this:

templates:
  TMDbDiscover:
  # See https://metamanager.wiki/en/latest/metadata/builders/tmdb.html#discover-shows-parameters
    sort_title: "!C <<collection_name>>"
    optional:
      - sort_by
      - certification
      - with_genres
      - primary_release_year
      - primary_release_date.gte
      - primary_release_date.lte
    certification_country: US
    limit: 10
    collection_order: custom
    sync_mode: sync
collections:
  TMDb Top Grossing:
    template: {mane: TMDbDiscover, sort_by: revenue.desc}
wild patio
#

You probably want to actually use the sort_by

night flame
#

require it?

#

Oh yeah I am missing variables

wild patio
#

You're not applying the value to anything.

night flame
#

yeah good catch

#

Like one of these in the template sort_by: <<sort_by>>

wild patio
#

you also need to use the builder.

night flame
#

Oh yes I need a tmdb_discover:

wild patio
#
templates:
  My Cool Template:
    sort_title: "!C <<collection_name>>"
    optional:
      - sort_by
    tmdb_discover:
      certification_country: US
      certification: R
      sort_by: <<sort_by>>
    limit: 10
    collection_order: custom
    sync_mode: sync
#

something like that

night flame
#

Nice that's great, will make it easy to experiment

#

Thanks for the help! I'll keep plugging away

snow blaze
#

I love a good mind fuck. I have this As a genre in my plex

night flame
#

haha yeah apparently I already had 49 of whatever was in the list I had configured