پشتیبانی پایگاه داده‌ فیلم

The best way to explain this is with an example:

If you search for "disney", and request page 1, you will get:

{ "page":1, "results":[ 20 records ], "total_pages":6, "total_results":117 }

For pages 2 through 6, you get what you'd expect:

{ "page":2, "results":[ 20 records ], "total_pages":6, "total_results":117 }
{ "page":3, "results":[ 20 records ], "total_pages":6, "total_results":117 }
{ "page":4, "results":[ 20 records ], "total_pages":6, "total_results":117 }
{ "page":5, "results":[ 20 records ], "total_pages":6, "total_results":117 }
{ "page":6, "results":[ 17 records ], "total_pages":6, "total_results":117 }

At this point, you have retrieved 117 unique TMDb movie IDs.

However, if you then request page 7, you will get:

{ "page":7, "results":[ 20 records ], "total_pages":9, "total_results":175 }

Two of the movies returned in these 20 records are not in the original 117:

74146: Classic Cartoon Favorites, Vol. 5 - Extreme Sports Fun
74148: Classic Cartoon Favorites, Vol. 6 - Extreme Music Fun

For page 8, you get more:

{ "page":8, "results":[ 20 records ], "total_pages":9, "total_results":175 }

Four of these 20 are new:

51313: Esperando la Navidad
39251: Fluppy Dogs
46235: Little Einsteins - The Legend of the Golden Pyramid
126570: The Chronological Donald Volume Three

For page 9:

{ "page":9, "results":[ 15 records ], "total_pages":9, "total_results":175 }

One of which is new:

38566: Winnie the Pooh - ABC's

If you request page 10, you finally get an empty result set:

{ "page":10, "results":[], "total_pages":9, "total_results":175 }

However, note that all total you have only retrieved 172 records - not 175. And, only 124 of those are actually unique.

I have not examined the actual results returned by the web search, but it appears to show this same behavior.

This will put you on "Page 12 of 12" of 117 results: https://www.themoviedb.org/search?query=disney&movie_page=12

This will put you on "Page 13 of 18" of 175 results: https://www.themoviedb.org/search?query=disney&movie_page=13

Page 19 will finally show "We didn't find any movies."

BTW... if you click "formatting help" on the new discussion form, the top of the modal pop-up is outside the viewport and you can't get rid of it. (A preview would be nice too)

1 پاسخ (در صفحه 1 از 1)

Jump to last post

The fist issue you describe is probably related to different pages being cached at different times and then in between cached entries, things like popularity get adjusted ever so slightly which will have items appear on different pages at different times. Not much we can do about this, you will just have to code around it.

The second issue, related to the weird number of total_results is weird. It's probably related to the crazy custom pagination code that we're currently using. Movie (and maybe person) search is I think, the only place this is used so I would be surprised if you ever saw this problem anywhere else. Unfortunately I can't do anything about this until some stuff out of my control is addressed. I know that was vague but there's some business things that we've been trying to address for about a year now and still haven't achieved. Our hope is that by the end up January these get done and at that point I am free to re-factor search.

فیلم و نمایش تلویزیونی را نمی‌توانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.

Global

s تمرکز بر منوی جستجو
p منوی پروفایل باز شود
esc بستن پنجره باز
? پنجره میانبرهای صفحه‌کلید باز شود

در صفحات مدیا

b بازگشت به عقب (یا در صورت لزوم به منشا)
e برو به صفحه ویرایش

در صفحات فصل تلویزیونی

(فلش سمت راست) برو به فصل بعد
(پیکان سمت چپ) برو به نشست قبلی

در صفحات قسمت تلویزیونی

(فلش سمت راست) برو به قسمت بعد
(پیکان سمت چپ) برو به قسمت قبلی

در تمام صفحات تصویر

a پنجره افزودن تصویر باز شود

در تمام صفحات ویرایش

t انتخابگر ترجمه باز شود
ctrl+ s ثبت از

در صفحات بحث

n ایجاد بحث جدید
w تغییر وضعیت وضعیت تماشا
p تغییر وضعیت عمومی/خصوصی
c تغییر وضعیت بسته/باز
a گشایش صفحه فعالیت
r پاسخ به بحث
l برو به آخرین پاسخ
ctrl+ enter پیام خود را ثبت کنید
(فلش سمت راست) صفحه بعد
(پیکان سمت چپ) صفحه قبلی

تنظیمات

آیا می‌خواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟

ورود