دعم الموقع

Anyway of getting a movie's country of origin? I'd like to show, for each movie, the release date in it's country of origin. For that, I'd need to know what it is so I could parse the release_dates array looking for it.

6 ردود (على هذه الصفحة 1 من 1)

Jump to last post

@vitorary90 said:
How to get a movie's country of origin?
Anyway of getting a movie's country of origin?
I'd like to show, for each movie, the release date in it's country of origin.
For that, I'd need to know what it is so I could parse the release_dates array looking for it.

I believe that currently "origin_country" is only available to use as a filter.
See Discover.
https://developer.themoviedb.org/reference/discover-movie
I think the field is not reported in a movie detail data response.

But maybe "primary_release_date" could help.
It is the date considered for worldwide release.
The one next to the title in parentheses on the film homepage.
When the "region" filter is not specified in a Request of Details, the date in the "release_date" field is "primary_release_date".
Normally it is the release date, premiere, in the country of origin.

Does the official site of themoviedb make use of the API?
If so, do you have any idea on how they exhibit the movie's release date in my region (BR) and,
if it wasn't released in Brazil, in the original region with the region code inside of parenthesis?
Using primary_release_date wouldn't be sufficient information to put the original region code between parenthesis.

@vitorary90 said:

Does the official site of themoviedb make use of the API?

Yes.

If so, do you have any idea on how they exhibit the movie's release date in my region (BR)

When there is release date data for the country (in this case BR) in the BD.
Do not enter parenthesis next to the title but just below, alone or next to the certification.

and,
if it wasn't released in Brazil, in the original region with the region code inside of parenthesis?

By code programming.
If there is no BR date, use the default date. World Premiere.

Using primary_release_date wouldn't be sufficient information to put the original region code between parenthesis.

The year in parentheses on the film's home page is always the same.
It is always the year of "primary_release_date".
Which in turn is always the date of the world premiere.
Normally from the country of origin.
For example, see the film
Lawrence of Arabia (1962)
https://www.themoviedb.org/movie/947-lawrence-of-arabia/edit?active_nav_item=release_information
UK = 1962-12-11 Theatrical
BR = 1963-02-03 Theatrical
Using Search or Discover, if you specify region=BR, you will receive BR date.
If you do not specify, you will receive a UK date. The world premiere.

To obtain all dates from all countries there are 2 ways.
1 Release Dates
https://developer.themoviedb.org/reference/movie-release-dates
Example
https://api.themoviedb.org/3/movie/947/release_dates?api_key=THE_KEY

2 Details + append_to_response Release Dates
"primary_release_date" in initial details + all dates in all countries
https://developer.themoviedb.org/reference/movie-details
Example
https://api.themoviedb.org/3/movie/947?api_key=THE_KEY&language=pt-BR&append_to_response=release_dates

I'm sorry, but I've made all of your query suggestions, and I couldn't find "primary_release_date". Could you please post a screenshot of your json with the query you used?

@vitorary90 said:
I'm sorry, but I've made all of your query suggestions, and I couldn't find "primary_release_date".
Could you please post a screenshot of your json with the query you used?

In the response the field title is not "primary_release_date".
The title is the same, "release_date".
If you do not specify "region" the value will be "primary_release_date".
It's a little confusing, I know, but that's how it is.
Decisions in the past bind us today.

Oh, I see. Thanks!

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول