MediaBrowser / trakt

Trakt plugin for Emby
MIT License
20 stars 16 forks source link

Sync Trakt lists to Emby playlists #15

Open Mushin opened 4 years ago

Mushin commented 4 years ago

Please can you add the ability to sync user lists from Trakt to create playlists in Emby?

This would be a really useful feature that would improve the functionality of Emby.

Mushin commented 4 years ago

Hi, is this plugin still being actively developed? Thanks.

LukePulverenti commented 4 years ago

Yes it is.

bakes82 commented 4 years ago

@LukePulverenti If you use the c# trakt api https://github.com/henrikfroehling/Trakt.NET

If you can have a a UI that takes in a list of trakt list URIs (Allow users to set a name and add/delete lists, also create collections or play lists) Example URI https://trakt.tv/users/movistapp/lists/walt-disney-animated-feature-films?sort=rank,asc

From the URI you need to parse the username "movistapp" and the list name "walt-disney-animated-feature-films"

Call the API

var items = new List<TraktPagedResponse<ITraktListItem>>();
        foreach (var list in traktListFields)
        {
            items.AddRange(await traktClient.Users.GetCustomListItemsAsync(list.Username, list.ListName));
        }

Loop over the results:

 foreach (var traktPagedResponse in items)
        {
            foreach (var traktListItem in traktPagedResponse.Value)
            {
var Year = traktListItem.Movie.Year;
var IMDB = traktListItem.Movie.Ids.Imdb;  //TVDBID should also be an option
//DO EMBY MAGIC HERE
}}
twhiting9275 commented 3 months ago

4 years later, still nothing. Clearly this is not 'still being developed'.