Jump to content
xiot

Trakt - Don't Remove Items from Collection

Recommended Posts

xiot
Posted (edited)

Is there a way to add items to my collection in Trakt, but not remove them?
I have media accross several different platforms, and the Trakt sync just wiped out my Trakt Collection.
The items still show up in Trakt for me, so its not too hard to get them back, but it is a little annoying.

I found a post from last year, that stated that "dont remove from collection" would be added in the next version, but it looks like the author is no longer active.
Is this something that will be done?

Edit:  Is the Trakt plugin maintained by the Emby team, or is it community driven?  I can submit a PR if needed.

Thanks,

 

Edited by xiot

Share this post


Link to post
Share on other sites
Luke
Quote

Is the Trakt plugin maintained by the Emby team, or is it community driven?  I can submit a PR if needed.

Hi there, it's a combination of both, and yes, pull requests are welcome !

Share this post


Link to post
Share on other sites
xiot

Hey @Luke, so I'm looking into the Trakt plugin, and the metadata in general, and I have a quick question.

I cleaned up some of my movies, and the Trakt plugin got the 'Removed' events, and removed them from Trakt, but didn't get the 'Added' event when they got picked up again.  This is a separate issue, but it lead me to dig into more of the metadata.

In order to restore my collection on Trakt, I set the option to use the 'Created Date' for the library, then removed and re-added that folder.  Refreshing my client, I can see the movies, and the Date Added is set to the proper date, however once the Metadata Sync finsihes, it changes it to a date about 4 days ago (probably when I first added that folder to my library).
I did notice `If a metadata value is present it will always be used before either of these options.` when setting the selection for the date to use, but my question is where is this metadata stored?

After I removed the folder from my library, I checked the `MediaItems` table in `library.db` and saw that the row was gone (as expected), however it still pulls that old date from somewhere.
I checked the in metadata folder, but I only found images (only spot checked about 6 or 7 folders.)

TLDR;  where does the metadata persist when an item has been removed from the library?

Share this post


Link to post
Share on other sites
vdatanet
3 hours ago, xiot said:

where does the metadata persist when an item has been removed from the library?

Do you have nfo files enabled?

Share this post


Link to post
Share on other sites
xiot
Posted (edited)
20 hours ago, vdatanet said:

Do you have nfo files enabled?

Looks like it.

I grepped my library for the timestamp (in unix epoch) and it didn't match anything, and I must have manually missed the `dateadded` tag in the `.nfo` file.
The `dateadded` in the `.nfo` matches with what Emby reports.

Thanks,

Going back to my original post, I created a PR to add the `DontRemoveFromCollection` option. 
Its currently just a draft becuase I haven't been able to fully test it yet.

Is https://github.com/MediaBrowser/trakt/tree/master/Trakt the up to date source for the plugin?
Looking at the `.csproj` its current version is `3.3.8.0`, however looking at the logs, it shows 
```
 Loading Trakt, Version=3.4.4.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Trakt.dll
```

It looks like the plugins auto update themselves.
```
2020-07-12 23:58:27.957 Info HttpServer: HTTP GET http://emby.at.home:8096/web/configurationpages?Name=Trakt. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
2020-07-12 23:58:27.962 Info HttpServer: HTTP Response 200 to 192.168.0.164. Time: 5ms. http://emby.at.home:8096/web/configurationpages?Name=Trakt
2020-07-12 23:58:27.965 Info HttpServer: HTTP GET http://emby.at.home:8096/web/configurationpage?name=Trakt&v=4.4.3.0&r=0. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
2020-07-12 23:58:27.984 Info HttpServer: HTTP Response 200 to 192.168.0.164. Time: 20ms. http://emby.at.home:8096/web/configurationpage?name=Trakt&v=4.4.3.0&r=0
```

Is there a way to disable that?  Or I guess a better question, is what is the best way to develop plugins (I'm on a mac)
I can build the Trakt plugin and copy it into the `/config/plugins` folder, but the next time the server starts up, the auto-update replaces the dll.

Edited by xiot
formatting

Share this post


Link to post
Share on other sites
Luke

Yes the repo was out of date, sorry. I've updated it.

Share this post


Link to post
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...