Поддръжка на The Movie Database

I'm trying to import all TV shows.

I first tried a date range of 1940-today, but it had more than 1000 pages, which will break when I get past page 1000.

So then I broke up my search, grabbing a year at a time, for example 1940-01-01 to 1941-01-01, which gets about 60 pages per year, which is great.

The problem is, I see duplicates. While paging through the 1990's, simpsons is returned again and again, in different years.

Is there an easy way to construct a series of API calls (with paging) that will get all TV shows in a large date range (like 1940-today), without duplicates?

9 отговора (на страница 1 от общо 1)

Jump to last post

Are you using air_date.lte/air_date.gte or first_air_date.lte/first_air_date.gte?

I was using primary_release_date. But based on your reply, looks like first_air_date is the best solution for TV! I'll use that, thanks.

No problem! You got it. primary_release_date is only supported on movies.

Cheers.

New problem: Some shows have a NULL first_air_date, so they never show up in DISCOVER.

How do we handle this?

I tried modifying my API calls to search for TV shows where first_air_date is equal to null, but it didn't work.

(bump)

Hi gpvista,

You're right, there's no way to discover these series right now. I am not sure what my solution will be but I've created a new ticket for this here and will look at it when I find some time.

Thanks!

Hi @gpvista, I just pushed this live. You can now use a include_null_first_air_dates filter alongside any of the first_air_date filters if you want to include TV shows with a null air date. These updates have been reflected in the documentation.

Sweet! Will test it soon. Thanks.

Не можете да откриете филм или сериал? Влезте, за да го създадете.

Глобални

s фокусиране на лентата за търсене
p отваряне на меню "Профил"
esc затваряне на отворен прозорец
? отваряне на прозореца за клавишните комбинации

На страниците за медиите

b връщане назад
e към страницата за редактиране

На страниците за сезони

(стрелка надясно) към следващ сезон
(стрелка наляво) към предишния сезон

На страниците за епизоди

(стрелка надясно) към следващ епизод
(стрелка наляво) предишен епизод

На всички страници за изображения

a отваряне на прозорец за добавяне на изображение

На всички страници за редактиране

t меню за избор на език, на превода
ctrl+ s изпращане на форма

На страниците за дискусия

n създаване на нова дискусия
w статус на наблюдаване
p публична/лична
c затваряне/отваряне
a отваряне на действия
r отговаряне в дискусия
l към последния отговор
ctrl+ enter изпращане на вашето съобщение
(стрелка надясно) следваща страница
(стрелка наляво) предишна страница

Настройки

Искате ли да го оцените или добавите към списък?

Вход