ghomasHudson / Jellyfin-Auto-Collections

Automatically make jellyfin collections from IMDB, Letterboxd lists and more.
MIT License
85 stars 11 forks source link

How to set up trakt #45

Closed Druidblack closed 2 months ago

Druidblack commented 3 months ago

How do I set up trakt? I added the client_id and client_secret generated earlier for another project. Currently, no applications use this data.

After restarting the container. The scan stops at the creation of movies/box office.

Do I need any other settings to work with trakt?

ghomasHudson commented 3 months ago

have you enabled it? i.e. set enabled: true under the trakt section?

Druidblack commented 3 months ago

yes

ghomasHudson commented 3 months ago

Hmm. Here's the process I went through.

  1. Go to https://trakt.tv/oauth/applications/new and fill out the form. It doesn't matter what values you enter here (you can put https://localhost for the redirect uri - we won't be using it)
  2. Press submit. On the next page, copy the Client ID and Client Secret. image
  3. Add these to the config file:
    trakt:
    enabled: false
    list_ids:
      - "movies/boxoffice"
      - "shows/popular"
    client_id: 3fa9e48c2708818943b733b8da7424eb24e138bb99f91d68c6ede798c0f79f69
    client_secret: 1b90dd8530bfbdb1c91de6fbb6a87f9595f34fb6e957e16a8a79047e8aa0bdca
  4. Run the script. It will provide you a device code and link to follow. Enter the code at the link and the script will now be authenticated and create the lists.
Druidblack commented 3 months ago

Redirect URI: What should I write here?

ghomasHudson commented 3 months ago

Redirect URI: What should I write here?

Doesn't matter - try anything that works. Try https://localhost

Druidblack commented 3 months ago

Безымянный I've been waiting for more than 10 minutes. Nothing changes. When and where should I see the authorization link?

ghomasHudson commented 3 months ago

It should be straight away. It's a little tricky because you're in a container - try recreating it if you change the credentials in the config as there's a .trakt_access_token which needs to be recreated.

ghomasHudson commented 2 months ago

Assuming this is fixed. Feel free to reopen if you're still having this issue.