Skip to content
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

initial load to trakt/letterboxd #7

Open
thobi85 opened this issue Jan 12, 2024 · 8 comments
Open

initial load to trakt/letterboxd #7

thobi85 opened this issue Jan 12, 2024 · 8 comments

Comments

@thobi85
Copy link

thobi85 commented Jan 12, 2024

Hello,
first of all thank you for this script.
I would like to use it for my plex/tautulli setup. Is it possible beside the tautulli trigger "watched" to have an initial load for the already watched episodes and movies?

regards
thobi

@JvSomeren
Copy link
Owner

It should be possible to build something like that using Tautulli's API (get_history for example).

However the script in its current state doesn't support is. It was made to receive events from Tautulli not query it for data.

@thobi85
Copy link
Author

thobi85 commented Jan 15, 2024

Thanks for your reply.
I have also checked the tautulli API at the weekend and developed an initial load for movies and episodes with the methods get_history and get_metadata to sync them to Trakt.
The initial load can be triggered like you trigger the letterboxd authentication.

@Anon0511
Copy link

Anon0511 commented Mar 6, 2024

Thanks for your reply. I have also checked the tautulli API at the weekend and developed an initial load for movies and episodes with the methods get_history and get_metadata to sync them to Trakt. The initial load can be triggered like you trigger the letterboxd authentication.

Hey, you got some code to share?

@thobi85
Copy link
Author

thobi85 commented Mar 6, 2024

Hey, you got some code to share?

I can fork it and make it available on my own github. I have additionally changed from tvdb to tmdb id's.
Give me a few days to go through the coding and upload it.

@Anon0511
Copy link

Anon0511 commented Mar 7, 2024

Hey, you got some code to share?

I can fork it and make it available on my own github. I have additionally changed from tvdb to tmdb id's. Give me a few days to go through the coding and upload it.

Thanks, that would be great. I tried an hour with ChatGPT to get it working but to no avail.

@thobi85
Copy link
Author

thobi85 commented Mar 7, 2024

Thanks, that would be great. I tried an hour with ChatGPT to get it working but to no avail.

Good for me, that ChatGPT can't solve any coding topics yet. ;-)
I have forked the script, added my adjustment and have also done some improvement.
I didn't have the change to test it. Please provide me feedback if everything work or if I need some changes.

@Anon0511
Copy link

Anon0511 commented Mar 8, 2024

root@4d17985e1c5f:/config/scripts# python ./trakt_sync.py --contentType initial --userId -1
Traceback (most recent call last):
  File "/config/scripts/./trakt_sync.py", line 436, in <module>
    initial.initial_load()
  File "/config/scripts/./trakt_sync.py", line 337, in initial_load
    tautulli_url = self.get_tautulli_url()
                   ^^^^
NameError: name 'self' is not defined

You might enable issues in your repo and we can move the topic there. :)

@thobi85
Copy link
Author

thobi85 commented Mar 8, 2024

You might enable issues in your repo and we can move the topic there. :)

I have enabled the issues and have also done some adjustments on the script.
You had also some requests in the plextraktsync script, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants