Giter VIP home page Giter VIP logo

betaseries-to-trakt's Introduction

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.

betaseries-to-trakt's People

Contributors

tuxity avatar pinage404 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.