Υποστήριξη για το The Movie Database

Hello folks! I am a bit confused with the behavior of the TV show Details endpoint and the discrepancy between localized outputs, so if anyone can help I'd highly appreciate. Basically, there are several confusing parts:

  1. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air is:

    {
    "id": 5539105,
    "name": "Cliff Hanger",
    "overview": "As Houlihan discovers shocking revelations, the sisters face an impossible situation.",
    "vote_average": 0,
    "vote_count": 0,
    "air_date": "2024-12-24",
    "episode_number": 8,
    "episode_type": "finale",
    "production_code": "",
    "runtime": 53,
    "season_number": 2,
    "show_id": 199318,
    "still_path": "/uZOfM8YbGA5lbF6HIq87J4vo5hr.jpg"
    }
    

    But when calling https://api.themoviedb.org/3/tv/199318?language=ru (different language), the contents of last_episode_to_air is the previous episode:

    {
    "id": 5539104,
    "name": "Как выбрать конченого",
    "overview": "После ужасного предательства сёстры упорно ищут правду, а Хулихэн вступает в противоборство с Лофтусом.",
    "vote_average": 7,
    "vote_count": 1,
    "air_date": "2024-12-18",
    "episode_number": 7,
    "episode_type": "standard",
    "production_code": "",
    "runtime": 54,
    "season_number": 2,
    "show_id": 199318,
    "still_path": "/jOjg7K2lywAayYCYcecd7cnf7Fh.jpg"
    }
    

    Does anybody know the reason for the different outputs between the languages?

  2. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air as pointed out in p.1 but the last_air_date is 2024-12-18 (previous episode) which seems incorrect.

  3. I'm building a bot for checking new episode series, and it seems that yesterday the response from https://api.themoviedb.org/3/tv/199318?language=ru included the correct last episode (Cliff Hanger) but for some reason got reverted to the previous one about 5 hours later. Is this expected behavior?

Appreciate any help!

3 απαντήσεις(στη σελίδα 1 από 1)

Jump to last post

@ilyachase said:

Hello folks! I am a bit confused with the behavior of the TV show Details endpoint and the discrepancy between localized outputs, so if anyone can help I'd highly appreciate. Basically, there are several confusing parts:

  1. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air is:

    {
    "id": 5539105,
    "air_date": "2024-12-24",
    }
    

    But when calling https://api.themoviedb.org/3/tv/199318?language=ru (different language), the contents of last_episode_to_air is the previous episode:

    {
    "id": 5539104,
    "air_date": "2024-12-18",
    }
    

    Does anybody know the reason for the different outputs between the languages?

  2. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air as pointed out in p.1 but the last_air_date is 2024-12-18 (previous episode) which seems incorrect.

  3. I'm building a bot for checking new episode series, and it seems that yesterday the response from https://api.themoviedb.org/3/tv/199318?language=ru included the correct last episode (Cliff Hanger) but for some reason got reverted to the previous one about 5 hours later. Is this expected behavior?

Appreciate any help!

A first guess.
It's probably due to the time difference between the two countries. UTC Time.
ru = +4h
us = -4h
8 hours difference.
If you are within the time difference when you query, you will probably get a response saying "one day" difference.
In ru day 6 - aired on day 6
In us day 5 - aired the previous week.


EDIT
I suggest using ru-RU, similar to en-US in the "&language=" specification.
It may change the result.

@ticao2 said:

@ilyachase said:

Hello folks! I am a bit confused with the behavior of the TV show Details endpoint and the discrepancy between localized outputs, so if anyone can help I'd highly appreciate. Basically, there are several confusing parts:

  1. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air is:

    {
    "id": 5539105,
    "air_date": "2024-12-24",
    }
    

    But when calling https://api.themoviedb.org/3/tv/199318?language=ru (different language), the contents of last_episode_to_air is the previous episode:

    {
    "id": 5539104,
    "air_date": "2024-12-18",
    }
    

    Does anybody know the reason for the different outputs between the languages?

  2. When calling https://api.themoviedb.org/3/tv/199318?language=en-US, the contents of last_episode_to_air as pointed out in p.1 but the last_air_date is 2024-12-18 (previous episode) which seems incorrect.

  3. I'm building a bot for checking new episode series, and it seems that yesterday the response from https://api.themoviedb.org/3/tv/199318?language=ru included the correct last episode (Cliff Hanger) but for some reason got reverted to the previous one about 5 hours later. Is this expected behavior?

Appreciate any help!

A first guess.
It's probably due to the time difference between the two countries. UTC Time.
ru = +4h
us = -4h
8 hours difference.
If you are within the time difference when you query, you will probably get a response saying "one day" difference.
In ru day 6 - aired on day 6
In us day 5 - aired the previous week.


EDIT
I suggest using ru-RU, similar to en-US in the "&language=" specification.
It may change the result.

Thanks! This is a good guess. But I still don't get why it was the last episode, then the previous one, and now it became the last one again (so it changed over time), even though I'm 100% sure I always access the endpoint with the same language (ru).

For now, I solved these problems by accessing the "Seasons" with the last season - it seems to be more consistent (by the time the "Details" endpoint was giving the previous episode, the "Seasons" one was giving the correct info - both accessed with the ru language).

Also after some more thinking, it would be strange to use +4 as ru timezone as it has 11 timezones blush

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση