-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add property-handling and skeleton-property file
To better handle access tokens and device codes and to make them more persistent, I've decided to implement property-handling using a property file. In the given skeleton-property file the first two values (secret and id) are already pre-filled (seems it has to be this way? but seems weird...) and the other two will be generated on the first run of the program. I may have to remove the first two values in the future, but for now they stay in.
- Loading branch information
Showing
4 changed files
with
82 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
# trakt-average | ||
|
||
## History | ||
## Background | ||
|
||
### History | ||
Everytime I watch something and it gets scrobbled to [trakt](https://trakt.tv), I meticulously rate the item. So I was always annoyed when I finished watching a season or a show and it didn't use my rated episodes to calculate my season and/or show average rating - why should I have to rate this separately, again? | ||
|
||
## How this works | ||
### How this works | ||
It finds shows where either a season or a show is completed and then calculates the average over those items. Then it prints out those averages. In a second step, those values will be written back to trakt to update the season/show ratings. | ||
|
||
## Why Java? | ||
### Why Java? | ||
Because my java was getting rusty and I wanted to brush it up a little bit. Maybe I'll rewrite it in another language later, we'll see. | ||
|
||
## How to use | ||
|
||
### Use precompiled binary | ||
|
||
Download | ||
|
||
### Use the source, Luke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CLIENT_SECRET=d590f595fda389db5ca36a2f365f2a76008cdb1feef966b1c0856ee9d29d5127 | ||
CLIENT_ID=e671fcd13abf819e7aa221602c8edb077990179c0f70e904ab9d4b17262bba93 | ||
ACCESS_TOKEN= | ||
DEVICE_CODE= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters