Skip to content

Parse AniTrakt's Show and Movie table to get basic Trakt <-> MAL ID mapping

Notifications You must be signed in to change notification settings

rensetsu/db.trakt.anitrakt

Repository files navigation

aniTrakt-IndexParser

A scraped table data from AniTrakt by Huere to get anime mappings on MyAnimeList and Trakt.

Warning

THIS REPO IS NOT OFFICIALLY SUPPORTED BY HUERE, MAL, or TRAKT.

If you used any contents from this repo in your project and found bugs or want to submit a suggestion, please send us issues.

To get the scraped data, go to db/ folder and download as raw.

Data Structure

Key Name Type Description
title string The title of the anime
mal_id int MyAnimeList ID of the anime
trakt_id int Trakt ID of the show/movie
guessed_slug string | null Guessed slug of the anime, see comments for additional context
type Enum["shows", "movies"] Type of the anime
season int Season number of the anime, only for type == "shows"

Examples

Note

Final result does not contain comments, it's just for additional context in this README.

Shows

[
  // Example of a show "Shingeki no Kyojin", both season 1 and 2
  {
    "title": "Shingeki no Kyojin",
    "mal_id": 16498,
    "trakt_id": 1420,
    "guessed_slug": "attack-on-titan",
    "type": "shows",
    "season": 1
  },
  {
    "title": "Shingeki no Kyojin Season 2",
    "mal_id": 25777,
    "trakt_id": 1420,
    "guessed_slug": "attack-on-titan",
    "type": "shows",
    "season": 2
  }
]

To construct to a link, you can use the following format:

https://trakt.tv/{type}/{guessed_slug}/seasons/{season}

Movies

[
  // Example of a movie "Kimi no Na wa."
  {
    "title": "Kimi no Na wa.",
    "mal_id": 32281,
    "trakt_id": 1402,
    // Guessed slug won't work for movies, see additional comment
    "guessed_slug": "your-name",
    "type": "movies"
  }
]

To construct to a link, you can use the following format:

https://trakt.tv/{type}/{guessed_slug}-{year, see additional comment}

Additional Comment

Guessed Slug

  • Slug was guessed based on the English title of the anime from TMDB/Trakt end.
  • If you're unsure about the slug, you can use the trakt_id to get the correct slug from the Trakt website. It's still works anyhow.
  • Title that is purely numerical will be nulled in the guessed_slug to avoid unnecessary clash with Trakt server thought it's a Trakt integer ID.
  • Guessed slug won't work for movies unless you suffixed -{year} to the slug manually. For example, if in the guessed slug is your-name, you should change it to your-name-2016 to get the correct movie.
  • Guessed slug generally works for shows, but it might not work for some shows that have a similar name on Trakt. Please follow steps mentioned in the above point to get the correct slug, or use the trakt_id instead.

Additional File

In db/ folder, you might encounter some files started with overwrite_. This file contains pure rules from this repo to overwrite the existing data in the database.