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
#What is the value for these attributes? tmdb_airing_today: 30 tmdb_popular: 30 etc
1 messages · Page 1 of 1 (latest)
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.
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
That's what I was thinking, that would be good
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)]
ah yeah that makes sense
Probably that should be explicitly called out.
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}
You probably want to actually use the sort_by
You're not applying the value to anything.
you also need to use the builder.
Oh yes I need a tmdb_discover:
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
Nice that's great, will make it easy to experiment
Thanks for the help! I'll keep plugging away
Oh jeeze I tried to limit trakt_list returns with https://trakt.tv/users/hdlists/lists/mindfuck-movies?limit=10&sort=rank,asc limit=10, worked ina browser but the collections are pretty big!
Trakt
A Growing Collection of Mindfuck Movies! This list is maintained by mdblist.com Create your own: https://mdblist.com/lists/hdlists/mindfuck-movies Updated at 2023-09-22 19:43:03
I love a good mind fuck. I have this As a genre in my plex
haha yeah apparently I already had 49 of whatever was in the list I had configured