Import Movies or TV Shows from CSV file into your Trakt.tv Watchlist. If you don't know the TMDB or IMDB id the application will search for you and provide options.
Node.js v18+
Create a Trakt.tv app and copy your client_id
and client_secret
into the config file.
Create a TMDB app for your TMDB account, and add the API Read Access Token
into the config file.
client_id
: To interact with Trakt API, retrieve it from https://trakt.tv/oauth/applications client_secret
: To interact with Trakt API, retrieve it from https://trakt.tv/oauth/applicationsaccess_token
: Created by app at runtimerefresh_token
: Created by app at runtimedevice_code
: Created by app at runtimeapi_read_access_token
: To interact with TMDB API, retrieve it from https://www.themoviedb.org/settings/api{
"trakt": {
"client_id": "Add your client_id here",
"client_secret": "Add your client_secret here",
"access_token": "This is generated at runtime",
"refresh_token": "This is generated at runtime",
"device_code": "This is generated at runtime"
},
"tmdb": {
"api_read_access_token": "Add your api_read_access_token here"
}
}
Header line format must be title,year,imdb,tmdb,type
:
title
: Movie or TV Title (optional)year
: Movie or TV release year (optional)imdb
: imdb ID (optional - recommended)tmdb
: tmdb ID (optional - recommended)type
: [movie|tv] (mandatory)title,year,imdb,tmdb,type
Boardwalk Empire,,,,tv
Creed,2015,,,movie
,,,556694,movie
Usage: trakt_import.js [options]
Options:
--version Show version number [boolean]
-c, --config path to config (JSON) file. [required]
-i, --import path to import (CSV) file [required]
-h, --help Show help [boolean]
Examples:
trakt_import.js -c config.json -i imports from import.csv using
import.csv credentials in config.json
To get support, please create new issue
Happy to accept pull requests.
This script is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.