Skip to content

Commit

Permalink
chore: include 馃帴 token (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Mar 12, 2024
2 parents b6606f8 + 6343003 commit e9797ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ Plex Rich Presence alternatives:
## Setup

1. Create an API Application on [Trakt.tv](https://trakt.tv/oauth/applications/new) (with scrobble capabilities and `urn:ietf:wg:oauth:2.0:oob` as the redirect uri)
2. Create an API Application on [themoviedb.org](https://www.themoviedb.org/documentation/api).
3. Edit the `credentials.ini` file with the required API keys (Cliend IDs) and Trakt username.
4. In the [Discord Developer Dashboard](https://discord.com/developers/applications), within your application and under **Rich Presence** -> **Art Assets**, upload the application images, either the ones located in `/images` or ones that you choose to submit (as long as the keys for those images stay `shows` and `movies`).
5. Run the respective executable, and you're ready to start sharing your progress!
2. Edit the `credentials.ini` file with the required Trakt username.
3. Run the respective executable, and you're ready to start sharing your progress!

*P.S.* Discord needs to be running on the machine Discrakt is running on.
*P.P.S.* Place the `credentials.ini` file in the same directory as the executable.
Expand Down
3 changes: 0 additions & 3 deletions credentials.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ traktClientSecret =
OAuthAccessToken =
OAuthRefreshToken =
OAuthRefreshTokenExpiresAt =

[TMDB API]
tmdbToken = exampletoken
4 changes: 1 addition & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ pub fn load_config() -> Env {
trakt_refresh_token_expires_at: config
.getuint("Trakt API", "OAuthRefreshTokenExpiresAt")
.unwrap_or_default(),
tmdb_token: config
.get("TMDB API", "tmdbToken")
.expect("tmdbToken not found"),
tmdb_token: "21b815a75fec5f1e707e3da1b9b2d7e3".to_string(),
}
}

Expand Down

0 comments on commit e9797ea

Please sign in to comment.