tuxity / betaseries-to-trakt

Import your Betaseries account's TV shows informations into your Trakt.tv account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

betaseries-to-trakt

Import your Betaseries account's TV shows informations into your Trakt.tv account.

MIT License

Getting Started

Betaseries

Go to your account advanced settings, and at almost the end of the page click on Exporter les séries → and Exporter les films →.

Keep the downloaded files nearby.

Trakt.tv

Go register a new api app. And fill the form with theses informations:

Name: betaseries-to-trakt
Redirect uri: urn:ietf:wg:oauth:2.0:oob

You don't really care about the other fields.

Next, go to your api applications and click on the one named betaseries-to-trakt

You will need the Client ID and the Client Secret from that page.

Running the script

With Docker

docker pull tuxity/betaseries-to-trakt:latest
docker run -d --env CLIENT_ID=theclientID --env CLIENT_SECRET=theclientseccret tuxity/betaseries-to-trakt:latest

Without Docker

You will need python3

Launch the script like this:

CLIENT_ID=theclientID CLIENT_SECRET=theclientseccret python3 betaseries-to-trakt.py "~/Downloads/Séries de Tuxity.csv" "~/Downloads/Films de Tuxity.csv"

Follow the script instructions

ET VOILA!

What does the script do ?

TV Shows

  • shows with no episodes watched will be added to your Trakt's Shows watchlist
// example

id,thetvdb_id,title,archive,episode,remaining,status,tags
3764,250487,"American Horror Story",1,S00E00,84,0,
  • shows that have at least 1 episode seen will be added to your Trakt's history (the seen episodes watched at dates will be set to the release date, as Betaseries does not provide this information in the CSV export)
// example

id,thetvdb_id,title,archive,episode,remaining,status,tags
4189,253463,"Black Mirror",0,S02E03,13,"31,58",

Movies

There are 3 different statuses for a movie in Betaseries

  • Movies with the status 0 (= je veux voir) will be added to your Trakt's Movies watchlist
  • Movies with the status 1 (= j'ai vu) will be added to your Trakt's Movies history (the watched at date will be set to the release date, as Betaseries does not provide this information in the CSV export)
  • Movies with the status 2 (= je ne veux pas voir) will be ignored
// example

id,tmdb_id,title,status
193,19995,Avatar,1
13157,76757,"Jupiter : Le Destin de l'univers",2
92,49051,"Le Hobbit : Un voyage inattendu",0

License

betaseries-to-trakt is freely distributable under the terms of the MIT license.

About

Import your Betaseries account's TV shows informations into your Trakt.tv account.

License:MIT License


Languages

Language:Python 95.7%Language:Dockerfile 4.3%