Connections - groenlid/Uranime-api GitHub Wiki

The connection system is based on three tables.

Connection

A connection is a "link" between two entities (uranime and an external source). The entities can be shows, episodes etc. Durarara! (uranime) <---- Connection ----> Durarara! (anidb)

Mapping

A table that defines what kind of connection-attributes are available.

  • Seasons: Fetch season from site. Requires you to have a seasons array as well.
  • Manual mapping: Don't do any automatic mapping. (Locks the show for the scrapers but not the admins/moderators)
  • Clone: Clone the anime episodes into uranime. This is the same as a full passthrough

Scenarios (c = collection, e[1-9] entry 1-9)

  • Anime: Break Blade (Movies).
Anime TheTvDb AniDb MyAnimeList TheMovieDb Trakt Uranime
Break Blade (Movies) c c e1 e2 e3 e4 e5 e6 c e1 e2 e3 e4 e5 e6 c
In anidb it's one entry with multiple episodes/movie parts, while in themoviedb it's represented as

Examples

Break blade

{
  "title": "Break Blade",
  "lock": {
    "level": "administrator",
    "locked": true,
    "reason": "The reason behind the locking.. Can lock on anime or episode/movies."
  },
  "connections": {
    "anidb": [
      {
        "id": 10444,
        "link": "http://anidb.net/perl-bin/animedb.pl?show=anime&aid=10444",
        "mapping": "clone"
      }
    ],
    "thetvdb": [
      {
        "id": 179791,
        "mapping": "seasons",
        "seasons": [
          0
        ]
      }
    ],
    "themoviedb": [
      {
        "id": 55426,
        "mapping": "manual"
      },
      {
        "id": 55430,
        "mapping": "manual"
      },
      {
        "id": 55431,
        "mapping": "manual"
      }
    ],
    "myanimelist": [
      {
        "id":6772
      }
    ]
  }
}