trakt / api-help

Trakt API docs at https://trakt.docs.apiary.io
183 stars 7 forks source link

Episode absolute number #96

Closed jonathanantoine closed 5 years ago

jonathanantoine commented 5 years ago

Hello,

What's the best way to compute it as it's not returned by the Api but asked by users for anime series 😁😇?

Regards

rectifyer commented 5 years ago

The API returns number_abs for episode objects if you request full info. We get that info from TVDB, so if the field is null it means they don't have it set.

If you need to calculate yourself, you should get all episodes then order them by air date and assign the absolute numbers in order. Where it gets tricky is with specials. TVDB absolute number usually includes specials as well.

jonathanantoine commented 5 years ago

It's perfect @rectifyer , thank you !

jonathanantoine commented 5 years ago

Hello @rectifyer , I reopen the issue because in "history" they all seems to be null :(

Example request : https://api.trakt.tv/users/me/history?extended=full

Example answer :

[
    {
        "id": 4634136129,
        "watched_at": "2019-07-09T11:40:45.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 2,
            "number": 45,
            "title": "La mentira de Teresa",
            "ids": {
                "trakt": 3609637,
                "tvdb": 7268420,
                "imdb": null,
                "tmdb": 1767436,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": null,
            "rating": 0.0,
            "votes": 0,
            "comment_count": 0,
            "first_aired": "2019-07-09T02:00:00.000Z",
            "updated_at": "2019-08-08T17:07:34.000Z",
            "available_translations": [
                "en",
                "es",
                "fr",
                "hu",
                "pt"
            ],
            "runtime": 40
        },
        "show": {
            "title": "La Reina del Sur",
            "year": 2011,
            "ids": {
                "trakt": 31449,
                "slug": "la-reina-del-sur",
                "tvdb": 239491,
                "imdb": "tt1704637",
                "tmdb": 31586,
                "tvrage": null
            },
            "overview": "This compelling show tells the story of the legendary Teresa Mendoza, a courageous woman who is perceived as conquering the world of drug trafficking.",
            "first_aired": "2011-03-01T03:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "22:00",
                "timezone": "America/New_York"
            },
            "runtime": 40,
            "certification": "TV-MA",
            "network": "Telemundo",
            "country": "us",
            "trailer": null,
            "homepage": "http://www.msnlatino.telemundo.com/novelas/La_Reina_Del_Sur/",
            "status": "returning series",
            "rating": 8.16667,
            "votes": 48,
            "comment_count": 0,
            "updated_at": "2019-07-31T08:44:26.000Z",
            "language": "es",
            "available_translations": [
                "en",
                "es",
                "fr",
                "hu",
                "pt"
            ],
            "genres": [
                "drama",
                "action",
                "crime",
                "romance",
                "suspense"
            ],
            "aired_episodes": 123
        }
    },
    {
        "id": 4634135797,
        "watched_at": "2019-07-09T11:40:20.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 15,
            "number": 196,
            "title": "Episode 3836",
            "ids": {
                "trakt": 3584723,
                "tvdb": 7242927,
                "imdb": null,
                "tmdb": null,
                "tvrage": null
            },
            "number_abs": null,
            "overview": null,
            "rating": 0.0,
            "votes": 0,
            "comment_count": 0,
            "first_aired": "2019-07-08T18:15:00.000Z",
            "updated_at": "2019-08-07T21:19:46.000Z",
            "available_translations": [],
            "runtime": 25
        },
        "show": {
            "title": "Plus belle la vie",
            "year": 2004,
            "ids": {
                "trakt": 8544,
                "slug": "plus-belle-la-vie",
                "tvdb": 97371,
                "imdb": "tt0423713",
                "tmdb": 8590,
                "tvrage": null
            },
            "overview": "Most Beautiful Life reflects the daily lives of the inhabitants of \"le Mistral\", an imaginary neighbourhood in the Mediterranean port city of Marseille, where wealthy families cross paths with the less than rich.",
            "first_aired": "2004-08-30T18:15:00.000Z",
            "airs": {
                "day": "Thursday",
                "time": "20:15",
                "timezone": "Europe/Paris"
            },
            "runtime": 25,
            "certification": "TV-PG",
            "network": "France 3",
            "country": "fr",
            "trailer": null,
            "homepage": null,
            "status": "in production",
            "rating": 6.0,
            "votes": 15,
            "comment_count": 0,
            "updated_at": "2019-08-08T09:44:29.000Z",
            "language": "fr",
            "available_translations": [
                "bg",
                "en",
                "fr"
            ],
            "genres": [
                "drama",
                "family",
                "soap"
            ],
            "aired_episodes": 3869
        }
    },
    {
        "id": 4634135796,
        "watched_at": "2019-07-09T11:39:12.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 5,
            "number": 6,
            "title": "The Little Prince",
            "ids": {
                "trakt": 3550728,
                "tvdb": 7210672,
                "imdb": null,
                "tmdb": 1800772,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "Facing impossible odds, Luciana and the group work together to tackle an impossible task while Morgan helps prevent disaster. Elsewhere, an old friend presents Sarah, Charlie, and Strand with a solution.",
            "rating": 7.38834,
            "votes": 909,
            "comment_count": 4,
            "first_aired": "2019-07-08T01:00:00.000Z",
            "updated_at": "2019-08-09T00:48:49.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fi",
                "fr",
                "he",
                "hu",
                "id",
                "it",
                "ko",
                "lb",
                "lt",
                "nl",
                "no",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sv",
                "th",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 45
        },
        "show": {
            "title": "Fear the Walking Dead",
            "year": 2015,
            "ids": {
                "trakt": 94961,
                "slug": "fear-the-walking-dead",
                "tvdb": 290853,
                "imdb": "tt3743822",
                "tmdb": 62286,
                "tvrage": 48384
            },
            "overview": "In Los Angeles, a city where people come to escape, shield secrets, and bury their pasts, we follow this mysterious outbreak as it threatens to disrupt what little stability high school guidance counselor Madison Clark and English teacher Travis Manawa have managed to assemble. \r\n\r\nThe pressure of blending two families while dealing with resentful, escapist, and strung out children takes a back seat when society begins to break down. A forced evolution, and survival of the fittest takes hold, as our dysfunctional family finds they must either reinvent themselves or embrace their darker histories.",
            "first_aired": "2015-08-24T01:00:00.000Z",
            "airs": {
                "day": "Sunday",
                "time": "21:00",
                "timezone": "America/New_York"
            },
            "runtime": 45,
            "certification": "TV-MA",
            "network": "AMC",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=yzXglr5bc3w",
            "homepage": "http://www.amc.com/shows/fear-the-walking-dead",
            "status": "returning series",
            "rating": 7.2061,
            "votes": 6788,
            "comment_count": 63,
            "updated_at": "2019-08-08T09:13:17.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fi",
                "fr",
                "he",
                "hu",
                "id",
                "it",
                "ko",
                "lb",
                "lt",
                "nl",
                "no",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sv",
                "th",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "horror",
                "suspense",
                "thriller"
            ],
            "aired_episodes": 61
        }
    },
    {
        "id": 4634077464,
        "watched_at": "2019-07-09T11:27:30.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 3,
            "number": 2,
            "title": "Mary and Martha",
            "ids": {
                "trakt": 3372616,
                "tvdb": 7036363,
                "imdb": "tt9364446",
                "tmdb": 1802894,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "June helps Marthas with a dangerous task while navigating a relationship with her pious and untrustworthy new walking partner. Emily and Luke struggle with their altered circumstances.",
            "rating": 7.70581,
            "votes": 1550,
            "comment_count": 3,
            "first_aired": "2019-06-05T07:00:00.000Z",
            "updated_at": "2019-08-09T05:00:22.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 51
        },
        "show": {
            "title": "The Handmaid's Tale",
            "year": 2017,
            "ids": {
                "trakt": 113938,
                "slug": "the-handmaid-s-tale",
                "tvdb": 321239,
                "imdb": "tt5834204",
                "tmdb": 69478,
                "tvrage": null
            },
            "overview": "In a dystopian near-future, the totalitarian and Christian-fundamentalist government of Gilead rules the former United States amidst an ongoing civil war and subjugates women, who are not allowed to work, control money, or even read. Widespread infertility due to environmental contamination has resulted in the conscription of young fertile women—called Handmaids, according to biblical precedent—who are assigned to the homes of the elite, where they must have ritualized sex with the men in order to become pregnant and bear children for those men and their wives.",
            "first_aired": "2017-04-26T07:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "03:00",
                "timezone": "America/New_York"
            },
            "runtime": 50,
            "certification": "TV-MA",
            "network": "Hulu",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=81PyH5TH-NQ",
            "homepage": "https://www.hulu.com/the-handmaids-tale",
            "status": "returning series",
            "rating": 8.49799,
            "votes": 4974,
            "comment_count": 36,
            "updated_at": "2019-08-08T10:34:13.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 35
        }
    },
    {
        "id": 4633868492,
        "watched_at": "2019-07-09T08:30:55.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 2,
            "number": 1,
            "title": "Beginnings and Endings",
            "ids": {
                "trakt": 3500876,
                "tvdb": 7154358,
                "imdb": "tt7787482",
                "tmdb": 1793851,
                "tvrage": 0
            },
            "number_abs": 11,
            "overview": "Six months after the disappearances, the police form a task force. In 2052, Jonas learns that most of Winden perished in an apocalyptic event.",
            "rating": 8.00232,
            "votes": 862,
            "comment_count": 3,
            "first_aired": "2019-06-20T22:00:00.000Z",
            "updated_at": "2019-08-09T05:27:21.000Z",
            "available_translations": [
                "bg",
                "cs",
                "de",
                "el",
                "en",
                "es",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "nl",
                "no",
                "pl",
                "pt",
                "ro",
                "ru",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 60
        },
        "show": {
            "title": "Dark",
            "year": 2017,
            "ids": {
                "trakt": 123775,
                "slug": "dark",
                "tvdb": 334824,
                "imdb": "tt5753856",
                "tmdb": 70523,
                "tvrage": null
            },
            "overview": "When two children go missing in a small German town, its sinful past is exposed along with the double lives and fractured relationships that exist among four families as they search for the kids. The mystery-drama series introduces an intricate puzzle filled with twists that includes a web of curious characters, all of whom have a connection to the town's troubled history -- whether they know it or not. The story includes supernatural elements that tie back to the same town in 1986.",
            "first_aired": "2017-11-30T23:00:00.000Z",
            "airs": {
                "day": "Friday",
                "time": null,
                "timezone": "Europe/Berlin"
            },
            "runtime": 60,
            "certification": "TV-14",
            "network": "Netflix",
            "country": "de",
            "trailer": "http://youtube.com/watch?v=rrwycJ08PSA",
            "homepage": "https://www.netflix.com/title/80100172",
            "status": "returning series",
            "rating": 8.55925,
            "votes": 4236,
            "comment_count": 44,
            "updated_at": "2019-08-07T09:27:10.000Z",
            "language": "de",
            "available_translations": [
                "bg",
                "cs",
                "de",
                "el",
                "en",
                "es",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "nl",
                "no",
                "pl",
                "pt",
                "ro",
                "ru",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "mystery",
                "crime",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 18
        }
    },
    {
        "id": 4621698840,
        "watched_at": "2019-07-05T12:11:36.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 3,
            "number": 6,
            "title": "Household",
            "ids": {
                "trakt": 3561910,
                "tvdb": 7223225,
                "imdb": "tt9399412",
                "tmdb": 1837055,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "June accompanies the Waterfords to Washington D.C., where a powerful family offers a glimpse of the future of Gilead. June makes an important connection as she attempts to protect Nichole.",
            "rating": 7.92045,
            "votes": 1345,
            "comment_count": 5,
            "first_aired": "2019-06-26T07:00:00.000Z",
            "updated_at": "2019-08-09T03:33:15.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 50
        },
        "show": {
            "title": "The Handmaid's Tale",
            "year": 2017,
            "ids": {
                "trakt": 113938,
                "slug": "the-handmaid-s-tale",
                "tvdb": 321239,
                "imdb": "tt5834204",
                "tmdb": 69478,
                "tvrage": null
            },
            "overview": "In a dystopian near-future, the totalitarian and Christian-fundamentalist government of Gilead rules the former United States amidst an ongoing civil war and subjugates women, who are not allowed to work, control money, or even read. Widespread infertility due to environmental contamination has resulted in the conscription of young fertile women—called Handmaids, according to biblical precedent—who are assigned to the homes of the elite, where they must have ritualized sex with the men in order to become pregnant and bear children for those men and their wives.",
            "first_aired": "2017-04-26T07:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "03:00",
                "timezone": "America/New_York"
            },
            "runtime": 50,
            "certification": "TV-MA",
            "network": "Hulu",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=81PyH5TH-NQ",
            "homepage": "https://www.hulu.com/the-handmaids-tale",
            "status": "returning series",
            "rating": 8.49799,
            "votes": 4974,
            "comment_count": 36,
            "updated_at": "2019-08-08T10:34:13.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 35
        }
    },
    {
        "id": 4621698705,
        "watched_at": "2019-07-05T12:11:15.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 3,
            "number": 5,
            "title": "Unknown Caller",
            "ids": {
                "trakt": 3561909,
                "tvdb": 7223224,
                "imdb": "tt9399406",
                "tmdb": 1815973,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "June and Serena grapple with a new revelation about Nichole, leading to an incident that will have far-reaching ramifications.",
            "rating": 7.98851,
            "votes": 1392,
            "comment_count": 6,
            "first_aired": "2019-06-19T07:00:00.000Z",
            "updated_at": "2019-08-09T00:02:19.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 49
        },
        "show": {
            "title": "The Handmaid's Tale",
            "year": 2017,
            "ids": {
                "trakt": 113938,
                "slug": "the-handmaid-s-tale",
                "tvdb": 321239,
                "imdb": "tt5834204",
                "tmdb": 69478,
                "tvrage": null
            },
            "overview": "In a dystopian near-future, the totalitarian and Christian-fundamentalist government of Gilead rules the former United States amidst an ongoing civil war and subjugates women, who are not allowed to work, control money, or even read. Widespread infertility due to environmental contamination has resulted in the conscription of young fertile women—called Handmaids, according to biblical precedent—who are assigned to the homes of the elite, where they must have ritualized sex with the men in order to become pregnant and bear children for those men and their wives.",
            "first_aired": "2017-04-26T07:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "03:00",
                "timezone": "America/New_York"
            },
            "runtime": 50,
            "certification": "TV-MA",
            "network": "Hulu",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=81PyH5TH-NQ",
            "homepage": "https://www.hulu.com/the-handmaids-tale",
            "status": "returning series",
            "rating": 8.49799,
            "votes": 4974,
            "comment_count": 36,
            "updated_at": "2019-08-08T10:34:13.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 35
        }
    },
    {
        "id": 4621698602,
        "watched_at": "2019-07-05T12:11:14.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 3,
            "number": 3,
            "title": "Useful",
            "ids": {
                "trakt": 3372623,
                "tvdb": 7036366,
                "imdb": "tt9364456",
                "tmdb": 1803222,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "June navigates a meeting where she must face both Commander Waterford and Nick. Serena Joy attempts to recuperate at her mother’s home. Lawrence teaches June a hard lesson about the difficult decisions he makes as a Commander.",
            "rating": 7.81855,
            "votes": 1477,
            "comment_count": 5,
            "first_aired": "2019-06-05T07:00:00.000Z",
            "updated_at": "2019-08-08T21:05:03.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 50
        },
        "show": {
            "title": "The Handmaid's Tale",
            "year": 2017,
            "ids": {
                "trakt": 113938,
                "slug": "the-handmaid-s-tale",
                "tvdb": 321239,
                "imdb": "tt5834204",
                "tmdb": 69478,
                "tvrage": null
            },
            "overview": "In a dystopian near-future, the totalitarian and Christian-fundamentalist government of Gilead rules the former United States amidst an ongoing civil war and subjugates women, who are not allowed to work, control money, or even read. Widespread infertility due to environmental contamination has resulted in the conscription of young fertile women—called Handmaids, according to biblical precedent—who are assigned to the homes of the elite, where they must have ritualized sex with the men in order to become pregnant and bear children for those men and their wives.",
            "first_aired": "2017-04-26T07:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "03:00",
                "timezone": "America/New_York"
            },
            "runtime": 50,
            "certification": "TV-MA",
            "network": "Hulu",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=81PyH5TH-NQ",
            "homepage": "https://www.hulu.com/the-handmaids-tale",
            "status": "returning series",
            "rating": 8.49799,
            "votes": 4974,
            "comment_count": 36,
            "updated_at": "2019-08-08T10:34:13.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 35
        }
    },
    {
        "id": 4621698606,
        "watched_at": "2019-07-05T12:11:07.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 3,
            "number": 4,
            "title": "God Bless the Child",
            "ids": {
                "trakt": 3372631,
                "tvdb": 7036371,
                "imdb": "tt9364002",
                "tmdb": 1814791,
                "tvrage": 0
            },
            "number_abs": null,
            "overview": "June negotiates a truce in the Waterfords’ fractured relationship. Janine oversteps with the Putnam family, and a still-healing Aunt Lydia offers a brutal public punishment.",
            "rating": 7.83827,
            "votes": 1453,
            "comment_count": 3,
            "first_aired": "2019-06-12T07:00:00.000Z",
            "updated_at": "2019-08-08T23:13:44.000Z",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "runtime": 50
        },
        "show": {
            "title": "The Handmaid's Tale",
            "year": 2017,
            "ids": {
                "trakt": 113938,
                "slug": "the-handmaid-s-tale",
                "tvdb": 321239,
                "imdb": "tt5834204",
                "tmdb": 69478,
                "tvrage": null
            },
            "overview": "In a dystopian near-future, the totalitarian and Christian-fundamentalist government of Gilead rules the former United States amidst an ongoing civil war and subjugates women, who are not allowed to work, control money, or even read. Widespread infertility due to environmental contamination has resulted in the conscription of young fertile women—called Handmaids, according to biblical precedent—who are assigned to the homes of the elite, where they must have ritualized sex with the men in order to become pregnant and bear children for those men and their wives.",
            "first_aired": "2017-04-26T07:00:00.000Z",
            "airs": {
                "day": "Wednesday",
                "time": "03:00",
                "timezone": "America/New_York"
            },
            "runtime": 50,
            "certification": "TV-MA",
            "network": "Hulu",
            "country": "us",
            "trailer": "http://youtube.com/watch?v=81PyH5TH-NQ",
            "homepage": "https://www.hulu.com/the-handmaids-tale",
            "status": "returning series",
            "rating": 8.49799,
            "votes": 4974,
            "comment_count": 36,
            "updated_at": "2019-08-08T10:34:13.000Z",
            "language": "en",
            "available_translations": [
                "ar",
                "bg",
                "bs",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hu",
                "it",
                "ko",
                "lt",
                "lv",
                "nl",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sr",
                "sv",
                "tr",
                "uk",
                "zh"
            ],
            "genres": [
                "drama",
                "fantasy",
                "science-fiction"
            ],
            "aired_episodes": 35
        }
    },
    {
        "id": 4598952837,
        "watched_at": "2019-06-26T16:33:59.000Z",
        "action": "watch",
        "type": "episode",
        "episode": {
            "season": 15,
            "number": 187,
            "title": "Episode 3827",
            "ids": {
                "trakt": 3563245,
                "tvdb": 7222571,
                "imdb": null,
                "tmdb": null,
                "tvrage": null
            },
            "number_abs": null,
            "overview": null,
            "rating": 0.0,
            "votes": 0,
            "comment_count": 0,
            "first_aired": "2019-06-25T18:15:00.000Z",
            "updated_at": "2019-08-07T21:20:01.000Z",
            "available_translations": [],
            "runtime": 25
        },
        "show": {
            "title": "Plus belle la vie",
            "year": 2004,
            "ids": {
                "trakt": 8544,
                "slug": "plus-belle-la-vie",
                "tvdb": 97371,
                "imdb": "tt0423713",
                "tmdb": 8590,
                "tvrage": null
            },
            "overview": "Most Beautiful Life reflects the daily lives of the inhabitants of \"le Mistral\", an imaginary neighbourhood in the Mediterranean port city of Marseille, where wealthy families cross paths with the less than rich.",
            "first_aired": "2004-08-30T18:15:00.000Z",
            "airs": {
                "day": "Thursday",
                "time": "20:15",
                "timezone": "Europe/Paris"
            },
            "runtime": 25,
            "certification": "TV-PG",
            "network": "France 3",
            "country": "fr",
            "trailer": null,
            "homepage": null,
            "status": "in production",
            "rating": 6.0,
            "votes": 15,
            "comment_count": 0,
            "updated_at": "2019-08-08T09:44:29.000Z",
            "language": "fr",
            "available_translations": [
                "bg",
                "en",
                "fr"
            ],
            "genres": [
                "drama",
                "family",
                "soap"
            ],
            "aired_episodes": 3869
        }
    }
]
rectifyer commented 5 years ago

A null value means TVDB doesn't have the absolute number set.

rectifyer commented 5 years ago

@jonathanantoine just wanted to check in on this and if you saw my previous answer.

jonathanantoine commented 5 years ago

Sorry for this long delay in my reply : it makes perfect sense, thanks for the clarification @rectifyer !