Jump to content

Channel aka Library/Collection From Trakt List


bakes82

Recommended Posts

bakes82

Plugin that will create a "Channel" of AppleTV+ Movies from a Trakt List.   If you know how to do plugins the format to customize is fairly simple.  I'm going to do a more "user customizable" solution where you can add the into to the plugin screen.  But this is a working example of what can be done.

https://github.com/bakes82/Emby.AppleTv

 

Emby.AppleTv

Plugin for Emby that will create a channel that contains all the movies in your library based on a trakt list for AppleTv+ Movies.

Trakt List Used:
https://trakt.tv/users/istoit/lists/apple-tv?sort=rank,asc

Home Screen

homescreen.png

Channel View

channelview.png

Channel Setup

channelsetup.png

  • Like 1
Link to comment
Share on other sites

  • 7 months later...
NErdgOd56

can this be used for any trakt list? or is it just for a trak list containing appletv+ movies ?

if not how would i use this for a different trakt list?

Link to comment
Share on other sites

NErdgOd56

ignore that last messege, i forked it and changed pluginconfig, the built it and installed it manually, works great, however do you know what i need to change to get it to include tv shows? 

im trying to turn it into an MCU plugin that shows this list in order of rank (rank in trakt, which is the correct order for the list), any help would be appreciated.

 

trakt list im using: https://trakt.tv/users/username57/lists/marvel-cinematic-universe-mcu-timeline?sort=rank,asc

fork:https://github.com/Ae3NerdGod/Emby.MCUList

Link to comment
Share on other sites

Very cool, thanks for sharing. When the channel imports content it specifies the type of each item being imported, so I would look for that.

Link to comment
Share on other sites

  • 3 weeks later...
Sammy
On 6/24/2021 at 11:42 AM, NErdgOd56 said:

ignore that last messege, i forked it and changed pluginconfig, the built it and installed it manually, works great, however do you know what i need to change to get it to include tv shows? 

im trying to turn it into an MCU plugin that shows this list in order of rank (rank in trakt, which is the correct order for the list), any help would be appreciated.

 

trakt list im using: https://trakt.tv/users/username57/lists/marvel-cinematic-universe-mcu-timeline?sort=rank,asc

fork:https://github.com/Ae3NerdGod/Emby.MCUList

 

On 6/24/2021 at 5:36 PM, Luke said:

Very cool, thanks for sharing. When the channel imports content it specifies the type of each item being imported, so I would look for that.

 

Is this functional? My wife and I are watching MCU in chronological order and this would be great but I'm not sure if it is finished yet.

Link to comment
Share on other sites

NErdgOd56
29 minutes ago, Sammy said:

 

 

Is this functional? My wife and I are watching MCU in chronological order and this would be great but I'm not sure if it is finished yet.

I've given it a few hours of research, but I am not a great coder. The best I was able to do was get it to list all the MCU movies I have in my collection. I was unable to get the plugin to also list TV shows, nor was I able to figure out how to make it list them in the chronological order, but emby allows sort by release date. This is definitely something I want to get working and is in the back of my mind, but for the mean time I settled for manually making a playlist myself (I recommend using a touchscreen device.) It took me about 30 mins and a coffee. Ill check and see if there's a way to export the emby playlist, or share it somehow? But I doubt that's possible.

Link to comment
Share on other sites

  • 2 weeks later...
horstepipe

Hello folks,

I looked for a similar thing quite long. But I‘d prefer adding a tag to the movies, not putting them into a library.

Could the plugin be modified doing that?

Link to comment
Share on other sites

  • 3 months later...
bakes82
On 7/14/2021 at 2:12 PM, NErdgOd56 said:

I've given it a few hours of research, but I am not a great coder. The best I was able to do was get it to list all the MCU movies I have in my collection. I was unable to get the plugin to also list TV shows, nor was I able to figure out how to make it list them in the chronological order, but emby allows sort by release date. This is definitely something I want to get working and is in the back of my mind, but for the mean time I settled for manually making a playlist myself (I recommend using a touchscreen device.) It took me about 30 mins and a coffee. Ill check and see if there's a way to export the emby playlist, or share it somehow? But I doubt that's possible.

In the channel.cs file is where the processing takes place

This code here pulls the data from trakt, you would need debug and see if the "rank" is part of the output, then order by rank.

var listData = await TraktApi.GetTraktUserListItems(Plugin.Instance.PluginConfiguration.TraktUser,Plugin.Instance.PluginConfiguration.TraktListUserName, Plugin.Instance.PluginConfiguration.TraktListName, new CancellationToken());

ex: listData = listaData.OrderBy(x => x.Rank);  // you could also just add the orderby to above.

Then reverse the logic of this for loop to instead be a foreach on the listData, right now its looping for every movie in emby and seeing if its on the list.

foreach (var movie in mediaItems.OfType<Movie>())

 

Your question about Tv shows, well do you see all the "Movie" references, you would need to change them all the "TV" or whatever the class is called, not sure if you can "mix" types in a channel IDT you can.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...