This tool get TODAY top 10 from flixpatrol and push the result on trakt list (useful for syncing with Kometa)
Note: I don't have any macOS device but the step should be the same as Linux.
To get started with Flixpatrol Top 10 on Trakt for Linux / macOS, follow these simple steps:
- Create a directory where you want the tool and config file be stored and go in it
mkdir flixpatrolTop10 cd flixpatrolTop10
- Download the latest release corresponding to the platform where your want to run this tool
wget https://github.com/Navino16/flixpatrol-top10-on-trakt/releases/download/v2.5.2/flixpatrol-top10-linux
- Make the downloaded binary executable
chmod +x flixpatrol-top10-linux
- Run the binary (it will create a directory with config file at first run next to the binary)
./flixpatrol-top10-linux
- Edit the config file as you want. It's located in
./config/default.json
- You can now run the tool periodically with tool like cron
To get started with Flixpatrol Top 10 on Trakt for Windows, follow these simple steps:
- Create a directory where you want the tool and config file be stored and go in it
- Download the latest release corresponding to the platform where your want to run this tool
- Run the binary (it will create a directory with config file at first run next to the binary)
- If you just double-click the executable the window will automatically close. To avoid this you can launch the executable with command line
- Edit the config file as you want. It's located in
./config/default.json
- You can now run the tool periodically with tool like Task Scheduler
To get started with Flixpatrol Top 10 on Trakt for Docker, follow these simple steps:
- Create a directory where you want the config files to be stored in
- Run docker (it will create the config file inside your directory)
docker run --rm -v "/some/path/flixpatrol-top10/config/:/app/config" ghcr.io/navino16/flixpatrol-top10-on-trakt:latest
- Edit the config file as you want
- You can now run the tool periodically with tool like cron
You can pass some environment variables to the tool:
Name | Descriptions | Values | Default |
---|---|---|---|
LOG_LEVEL | How verbose the log will be | error, warn, info, debug | info |
The configuration file should be stored in a directory named config
next to the binary.
It should be named default.json
.
At first run a default configuration file will be generated with some top10 preconfigured, so you can see the file format. Feel free to edit it.
If there is any configuration error, the tool will exit whit information about the error.
Name | Descriptions | Mandatory | Values | Default |
---|---|---|---|---|
FlixPatrolTop10 | An array containing as much as you want top10Config | Yes | ||
top10Config.platform | Which platform to get from Flixpatrol | Yes | Any Flixpatrol platform (see this) | |
top10Config.location | Which location to get from Flixpatrol | Yes | Any Flixpatrol location (see this) | |
top10Config.fallback | If there is no show/movie found, should we fallback to another location? | Yes | False or any Flixpatrol location (see this) | false |
top10Config.privacy | The privacy of the generated Trakt list | Yes | private, public | private |
top10Config.limit | How many movie/show we should get from Flixpatrol | Yes | Number between 1 and 10 (included) | 10 |
top10Config.type | Do you want movies, shows or both ? | Yes | movies, shows, both | both |
top10Config.name | Optional name of the list | No | Any valid string | A generated name based on the top10 config |
FlixPatrolPopular | An array containing as much as you want popularConfig | Yes | ||
popularConfig.platform | Which popular platform to get from Flixpatrol | Yes | Any Flixpatrol popular platform (see this) | |
popularConfig.privacy | The privacy of the generated Trakt list | Yes | private, public | private |
popularConfig.limit | How many movie/show we should get from Flixpatrol | Yes | Number between 1 and 100 (included) | 100 |
popularConfig.type | Do you want movies, shows or both ? | Yes | movies, shows, both | both |
popularConfig.name | Optional name of the list | No | Any valid string | A generated name based on the popular config |
FlixPatrolMostWatched | An array containing as much as you want flixPatrolMostWatched | Yes | ||
flixPatrolMostWatched.enabled | Do you want to get a most watched list ? | Yes | true, false | true |
flixPatrolMostWatched.privacy | The privacy of the generated Trakt list | Yes | private, public | private |
flixPatrolMostWatched.type | Do you want movies, shows or both ? | Yes | movies, shows, both | both |
flixPatrolMostWatched.limit | How many movie/show we should get from Flixpatrol | Yes | Number between 1 and 50 (included) | 50 |
flixPatrolMostWatched.year | Year of the most watched list. Check https://flixpatrol.com/most-watched/ to see available list. | Yes | Number between 2023 current year (included) | 50 |
flixPatrolMostWatched.name | Optional name of the list | No | Any valid string | most-watched |
flixPatrolMostWatched.premiere | Year of movie/show release. It will only return most watched movies/shows of this year. If omitted, all movie/shows are returned | No | Year between 1980 and current year (included) | All |
flixPatrolMostWatched.country | Release country of movie/show. It will only return most watched movies/shows of this country. If omitted, all movie/shows are returned | No | Any Flixpatrol location (see this) | All |
flixPatrolMostWatched.original | Return only movie/show created by Netflix. If omitted, all movie/shows are returned | No | true, false | false |
flixPatrolMostWatched.orderByViews | Order list by views. By default ordered by hours | No | true, false | false |
Trakt.saveFile | Where to save the Trakt session file | Yes | Any valid path | ./config/.trakt |
Trakt.clientId | You clientId from Trakt (here to get a new one) | Yes | A valid traktId | |
Trakt.clientSecret | You clientSecret from Trakt (here to get a new one) | Yes | A valid clientSecret | |
Cache.enabled | Do you want to use cache? (You should) | Yes | true, false | true |
Cache.savePath | Where to save the caches files | Yes | Any valid path | ./config/.cache |
Cache.ttl | How long the cache will be valid in seconds | Yes | Any number greater than 0 | 604800 |
{
"FlixPatrolTop10": [
{
"platform": "netflix",
"location": "world",
"fallback": false,
"privacy": "private",
"limit": 10,
"name": "Netflix Top 10 Movies",
"type": "movies"
},
{
"platform": "disney",
"location": "world",
"fallback": false,
"privacy": "private",
"limit": 10,
"name": "Disney Plus Top 10 Shows",
"type": "shows"
},
{
"platform": "amazon-prime",
"location": "world",
"fallback": false,
"privacy": "private",
"limit": 10,
"name": "Amazon Prime Top 10",
"type": "both"
},
{
"platform": "apple-tv",
"location": "world",
"fallback": false,
"privacy": "private",
"limit": 10,
"type": "both"
},
{
"platform": "paramount-plus",
"location": "world",
"fallback": false,
"privacy": "private",
"limit": 10,
"type": "both"
}
],
"FlixPatrolPopular": [
{
"platform": "movie-db",
"privacy": "private",
"limit": 100
}
],
"FlixPatrolMostWatched": [
{
"enabled": true,
"privacy": "public",
"year": 2023,
"limit": 50,
"type": "both"
}
],
"Trakt": {
"saveFile": "./config/.trakt",
"clientId": "You need to replace this client ID",
"clientSecret": "You need to replace this client secret"
},
"Cache": {
"enabled": true,
"savePath": "./config/.cache",
"ttl": 604800
}
}
To run this application you need to have a Trakt account and a Client ID / Client Secret.
- Go here to create a new one or here to login.
- Create a new application on your Trakt account
- Name: what ever you want
- Icon: not needed
- Description: not needed
- Redirect uri: urn:ietf:wg:oauth:2.0:oob
- Javascript (cors) origins: not needed
- Permissions: none
- Set the given Client ID / Client Secret on the configuration file
- Run the app and follow the instructions