دعم الموقع

Hi, I'm trying to make a script that helps me update the translation on TV show/seasons/episodes

I'm able to fetch data via the API of the show and the episodes but when I try to upload the translation data back to thdb I get

"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."

is that option not available via API ?

this is the part of the code that try to update the data

import requests
import json

url = "https://api.themoviedb.org/3/tv/{TV_ID}/episode/{EP_ID}/translations"

payload = {
        "iso_639_1": "he",
        "iso_3166_1": "IL",
        "name": translated_name,
        "overview": translated_text
}
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer API key'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

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

Jump to last post

@Itay1787 said:

Hi, I'm trying to make a script that helps me update the translation on TV show/seasons/episodes
I'm able to fetch data via the API of the show and the episodes but when I try to upload the translation data back to thdb I get

"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."

is that option not available via API ?

I don't quite understand your problem.
Do you want to update the data that is on your computer?
Or do you want to update the data that is in the TMDb Database?

Anyway

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

@ticao2 said:

@Itay1787 said:

Hi, I'm trying to make a script that helps me update the translation on TV show/seasons/episodes
I'm able to fetch data via the API of the show and the episodes but when I try to upload the translation data back to thdb I get

"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."

is that option not available via API ?

I don't quite understand your problem.
Do you want to update the data that is on your computer?
Or do you want to update the data that is in the TMDb Database?

Anyway

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

Ok, I'm trying to do is : The script pulls from TMDB via the API the episode summary in English and then I translate it after that it needs to be sent back to the TMDB via the API to the same episode in Hebrew. The error that I get is when I try to send it back to TMDB via the API and update the data that is in the TMDb Database. On the first message, I attached the URL and the payload that sent it back to the TMDB

@Itay1787 said:

Ok, I'm trying to do is :
The script pulls from TMDB via the API the episode summary in English and then I translate it
after that it needs to be sent back to the TMDB via the API to the same episode in Hebrew.
The error that I get is when I try to send it back to TMDB via the API and update the data that is in the TMDb Database. On the first message, I attached the URL and the payload that sent it back to the TMDB

It's not possible.
Any data change, for example a summary or overview, can only be made through the Website interface.

@ticao2 said:

@Itay1787 said:

Ok, I'm trying to do is :
The script pulls from TMDB via the API the episode summary in English and then I translate it
after that it needs to be sent back to the TMDB via the API to the same episode in Hebrew.
The error that I get is when I try to send it back to TMDB via the API and update the data that is in the TMDb Database. On the first message, I attached the URL and the payload that sent it back to the TMDB

It's not possible.
Any data change, for example a summary or overview, can only be made through the Website interface.

Ugh ):

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول