-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import From Plex's database to Trakt. #16
Comments
I don't use Plex, so it has not been done before at least per me. If Plex use sqlite db the script should be similar to the Kodi export. Ideally you export in a file the IMDB ID. https://github.com/xbgmsharp/trakt/blob/master/KODI.md |
Sorry to resurrect this; I am running into this situation now. Is there a chance you could please post the schema(s) of the .csv file that the import script expects? Then it shouldn't be a problem for me to work out the proper query that will output the necessary data from Plex's SQLite DB to the .csv file correctly. |
The import csv file should at least include a least an id, you can also have a rated_at and watched_at column. |
I assume you meant "at least an id". And I guess the However, I'm curious about adding to Trakt's 'collection' list. There is definitely an |
That is correct the id can be either 'imdb', 'tmdb', 'tvdb', 'tvrage', 'trakt'. Example integration |
Okay, those links help, thank you. I am still missing something, though, as I got the following error message: Invalid file format, id (row) must exists and is not blank (has a format). From the following simple csv:
|
After exploring the repo more and discovering the proper format at https://github.com/xbgmsharp/trakt/blob/master/import.md, I was finally able to get it to work. And I see that I just might fork the repo and take a stab at it, myself. If it works, I might even see if I can include the other metadata as well, such as |
Is there a simple way to sync historical data from Plex's database to Trakt? Plex has all watched data stored in
metadata_item_views
table. I am not sure how to extract from that table to format which your script would expect. Seems like something that might have been done before so figured I might ask. Thanks.The text was updated successfully, but these errors were encountered: