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?
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Travis Bell
در تاریخ اوت 24, 2016 ساعت 9:51 ب.ض
Are you using
air_date.lte
/air_date.gte
orfirst_air_date.lte
/first_air_date.gte
?پاسخ توسط gpvista
در تاریخ اوت 24, 2016 ساعت 10:11 ب.ض
I was using
primary_release_date
. But based on your reply, looks likefirst_air_date
is the best solution for TV! I'll use that, thanks.پاسخ توسط Travis Bell
در تاریخ اوت 24, 2016 ساعت 10:14 ب.ض
No problem! You got it.
primary_release_date
is only supported on movies.Cheers.
پاسخ توسط gpvista
در تاریخ سپتامبر 1, 2016 ساعت 6:53 ب.ض
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.
پاسخ توسط gpvista
در تاریخ سپتامبر 6, 2016 ساعت 1:47 ب.ض
(bump)
پاسخ توسط Travis Bell
در تاریخ سپتامبر 6, 2016 ساعت 3:33 ب.ض
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.
پاسخ توسط gpvista
در تاریخ سپتامبر 6, 2016 ساعت 4:06 ب.ض
Thanks!
پاسخ توسط Travis Bell
در تاریخ اکتبر 18, 2016 ساعت 12:57 ب.ض
Hi @gpvista, I just pushed this live. You can now use a
include_null_first_air_dates
filter alongside any of thefirst_air_date
filters if you want to include TV shows with a null air date. These updates have been reflected in the documentation.پاسخ توسط gpvista
در تاریخ اکتبر 18, 2016 ساعت 3:08 ب.ض
Sweet! Will test it soon. Thanks.