#Using Kometa to create a top nn episode playlist based on imdb ratings

1 messages ยท Page 1 of 1 (latest)

wintry echoBOT
#

๐Ÿ“ If you want to review this again, propman07:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

#

Welcome @ruby jewel!

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

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

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

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

wintry echoBOT
#

Hello...I'm back....and trying to create a playlist for the top 15 episodes based on imdb ratings. I originally created a collection (info found at this thread: https://discord.com/channels/822460010649878528/1232137605366153216), but found that it did not appear as desired on the Fire Cube client.

Shifting gears to try to get the results using a playlist. I was able to create a playlist on Trakt, and get Kometa to add that to the Plex library. Couple of issues....

Created playlist shows the episodes in released order, not sorted by imdb rating. Other issue is that there are 20 episodes shown...intent was to be able to modify the number of episodes to create a top 15, top 10, top 5, etc list.

Attaching configuration files.

Thanks.

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

#
**Kometa Info**
Kometa Header

Version: 2.0.0 (Docker)
PlexAPI Version: 4.15.12
Platform: Linux-6.1.74-Unraid-x86_64-with-glibc2.28
Memory: 31 GB

Run Command: kometa.py -r

Kometa Footer

Finished Run
Version: 2.0.0
Finished: 19:30:47 2024-04-27 Run Time: 0:01:02

Available Kometa Versions

as of 2024-04-28 04:42:32

Kometa Version (Master branch)

2.0.0

Kometa Version (Develop branch)

2.0.0

Kometa Version (Nightly branch)

2.0.0-nightly4

swift talon
#

don't need to share config, the log file already has a redacted copy

ruby jewel
#

okay...not sure how to remove those files from the post

swift talon
#

i already removed the config

ruby jewel
#

ty

swift talon
#

but Luma redacted it anyway

#

that list give a 404

ruby jewel
#

i had it set to private....changed to public

#

i'm thinking that i made the list incorrectly on the trakt side

swift talon
#

hold on

#

plex_all: true what is this?

ruby jewel
#

not sure....it was in one of the sample files on the wiki

swift talon
#
playlist_files:
- default: config/pl-for-all-mankind.yml                  # This is a file within PMM's defaults folder

  template_variables:
    libraries: Movies, TV Shows     ``` does not work, (1) your yml file is not a default, (2), you can't use template_variables in your own custom file unless they're defined in the file

so this should
```yaml
playlist_files:
- file: config/pl-for-all-mankind.yml  ```
ruby jewel
#

corrected in config file

swift talon
swift talon
ruby jewel
#

changed the following in the config.yml file:


playlist_files:
- default: config/pl-for-all-mankind.yml

playlist_files:
- file: config/pl-for-all-mankind.yml
swift talon
#

ok

ruby jewel
#

ran it again after updating...same results....shows the first 20 shows in airing order

eternal tapir
#

That list has only one show in it. the log shows it adding 20 episodes of one show.

#

Do you have more than 20 episodes of that show in that library? The log shows you have 20, so this seems to be working as I would have expected.

ruby jewel
#

hmmm....i was trying to make a list of the top 20 shows based on imdb ratings....i do have 20 episodes of that show in the library as it is a test library

#

is there a way to do a playlist from an imdb list?

eternal tapir
#

I'm just saying the the trakt list you are using only has one show in it, so I'm not sure why you would expect the playlist to have more than that one show in it.

ruby jewel
#

i didn't realize that the trakt playlist only had one show in it. i was trying to create a list of top 20 shows

eternal tapir
#

But again, that IMDB search only has that one show.

#

playlist for the top 15 episodes based on imdb ratings

trying to create a list of top 20 shows

I'm lost as to what you are trying to create

ruby jewel
#

sorry....i'll start over....trying to create a list of the top nn episodes for a series and get kometa to create a playlist of those episodes so that the thumbnails will display as intended on my TV via fire cube

swift talon
#

i am too, because then the thread is called Using Kometea to create a top nn episode playlist...

ruby jewel
#

so nn is 15, 20, etc....idea is that i would be able to change it in one of the config files

swift talon
#

i think your trakt list is a list of shows, but can you create a list of episodes?

eternal tapir
#

So episodes, not shows

swift talon
ruby jewel
#

i'm not sure on the trakt part...i'll have to look into that more

eternal tapir
#

That trakt list [for all mankind] example is behaving exactly as I'd expect [and I think as what you want] except for the ordering. Is this correct?

ruby jewel
#

again...sorry for the confusion.....the test library i'm using only has 20 episodes in it. I was trying to create a playlist for the top 15 episodes based on imdb rating

#

i'm not sure that the trakt list is behaving correctly....it merely lists out all 20 episodes in order of airing, not in order of imdb rating

#

so since that really didn't work as expected, and the collection that i was able to get kometa to build did work as expected (using imdb list), i thought that might be another path to try

swift talon
#

you have the list set to a show. there is only one show there, so it is behaving as it should

eternal tapir
#

First, this doesn't contain anything that would limit the list to 15.

playlists: 
#https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc
  For All Mankind Top Episodes:
    sync_mode: sync
    libraries: PMM-TV Shows  
    sync_to_users: 
    trakt_list: https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc

    summary: For All Mankind Top Episodes
ruby jewel
#

okay...i'll have to figure out how to get trakt to create a list of more than one show

eternal tapir
#

So the first thing would be to add that limit.

playlists: 
#https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc
  For All Mankind Top Episodes:
    sync_mode: sync
    libraries: PMM-TV Shows  
    sync_to_users: 
    trakt_list: https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc
    limit: 15
    summary: For All Mankind Top Episodes
ruby jewel
#

got it...didn't know that the trakt lists can't be sorted through api...

eternal tapir
#

Unfortunately, "imdb rating" is not a supported sort.

ruby jewel
#

thanks for the link to the wiki

eternal tapir
#

You can sort by one of the ratings you have set, so if you have the IMDB rating in one of hte plex ratings, you could sort by that; let's say it's audience:

playlists: 
#https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc
  For All Mankind Top Episodes:
    sync_mode: sync
    libraries: PMM-TV Shows  
    sync_to_users: 
    trakt_list: https://trakt.tv/users/propman07/lists/for-all-mankind-top-episodes?sort=imdb_rating,asc
    limit: 15
    collection_order: audience.desc
    summary: For All Mankind Top Episodes
#

I think that might do what you want

#

But you don't want the trakt list to have multiple shows, since that would give you the top 15 episodes across all those shows, not per show.

#

The trakt [or any external] list might be overly complicated. You can probably do these with a plex search instead, since you're jsut loking to collect things you have in your library.

ruby jewel
#

okay...didn't think of doing this with a plex search....i was coming off of the example using collections via imdb

#

that is correct....looking to put a playlist together based on items in the library...

#

thanks for the sort options link as well...looking in to that and trying to understand it

swift talon
#

i do something similar without a list. i run the mass ratings update for episodes, i set critic to imdb and audience to tmdb.

#

i run collections that pull the top 50 rated episodes for that show

ruby jewel
#

so you are creating a collection or a playlist?

swift talon
#

i create a collection

ruby jewel
#

okay...the collecdtions that i've made using kometa display correctly on my pc, but not on the TV via fire cube...that's why i was going to try a playlist as they display a little better on the TV

#

thanks to both of you for the help....i'm going to read through the wiki again and get back to this tomorrow.

swift talon
eternal tapir
#

I think the playlists show an episode image, where collections use the show image on the firetv client

ruby jewel
#

By display differently I mean the graphic posters. See the link to the other thread where I included snapshots of the pc graphics and firetv client graphics

swift talon
#

ugh, plex. LOL

#

i forget about that, since i really don't use playlists

drifting crystalBOT
#

Anything further needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.

potent plover
#

config.yml

TV: remove_overlays: false sonarr: url: *redacted* token: *redacted* root_folder_path: /data/media/tv quality_profile: TRaSH-4K tag: kometa collection_files: - file: config/tvcollections.yml - default: imdb - default: tmdb - default: trakt - default: network

tvcollections.yml

collections: The Simpsons Top 100: collection_order: custom builder_level: episode sync_mode: sync plex_search: type: episode sort_by: episode_critic_rating.desc limit: 100 all: title.ends: "Simpsons"

swift talon
#

so i do this very thing @potent plover

#
collections:
  Simpsons Top 50:
    builder_level: episode
    smart_filter:
      all:
        title: "The Simpsons" 
      sort_by:
        - critic_rating.desc
        - audience_rating.desc
      limit: 50
    summary: The top 50 episodes of The Simpsons, sorted by IMDb user rating. 
    sort_title: " !AATheSimpsons"
    collection_mode: hide```
potent plover
#

@swift talon thanks - should I send my logs if the collection is not showing? It appears to not be calling my collection list

swift talon
#

or open up a new ticket