Hi, sometimes runtime information is missing for whatever reason, but maybe if you post one or more examples of movies without runtime fields, we can try to figure out what's going on there. :-)
The duration of a movie is a language dependent field, like the title. Did you check on the site that, in the language you are making your request, a duration is available.
In that case, I don't understand why if I ask for language=ja-JP, it still returns a runtime even though Bullet Train has an existing Japanese translation with an empty duration field:
There maybe fallbacks in some cases, but the normal return value in that case is either null or the absence of the field, as written in the API documentation.
Hey @superboy97, I'm pretty sure the API does fall back now on the main details call, so there should always be a value unless you're looking at the translation data, which will show you the individual values.
I can't update the docs since the current version of Stoplight we're using has been EOL'd and is read only. I haven't found the time to get things migrated to a new system yet.
In that case, @orestegabo , if you want more help, you need to post here the exact query you are using (just replace your API key with a generic text like "API_KEY") and the result you get.
But when i'm trying to display it inside my Scaffold, it doenst show anything, but the when printing in the console, it show the real value
It is rather displaying the initial value of _runtime inside the Scaffold, which means that it is probably displaying the value of _runtie inside the Scaffold before receiving the real data , and then after don't update inside the Scaffold.
Відповідь від Travis Bell
2 червня 2016, 10:47 НОЧІ/РАНКУ
Hi beanland,
There is via the full info methods. The
runtime
field will be returned:Cheers.
Відповідь від beanland
2 червня 2016, 10:50 НОЧІ/РАНКУ
Thank you! I must have been looking for a field with a different name.
Відповідь від Travis Bell
2 червня 2016, 10:53 НОЧІ/РАНКУ
No problem ;)
Відповідь від orestegabo
29 вересня 2022, 7:19 ДНЯ/ВЕЧОРА
Is it normal that all the movies I have , have no runtime field?
Відповідь від Leon
29 вересня 2022, 7:35 ДНЯ/ВЕЧОРА
Hi, sometimes runtime information is missing for whatever reason, but maybe if you post one or more examples of movies without runtime fields, we can try to figure out what's going on there. :-)
Відповідь від orestegabo
29 вересня 2022, 10:16 ДНЯ/ВЕЧОРА
here is a list of some movies without runtime,
Відповідь від superboy97
30 вересня 2022, 2:37 НОЧІ/РАНКУ
The duration of a movie is a language dependent field, like the title. Did you check on the site that, in the language you are making your request, a duration is available.
Відповідь від Leon
30 вересня 2022, 3:16 НОЧІ/РАНКУ
Strange. Bullet Train doesn't have a Malay translation on this site, yet the runtime is still returned when I set language=ms-MY:
Відповідь від superboy97
30 вересня 2022, 6:02 НОЧІ/РАНКУ
I'm talking of existing translations with an empty duration field.
If you ask for a non-existent translation, the system will default to an existing one.
Відповідь від Leon
30 вересня 2022, 6:39 НОЧІ/РАНКУ
In that case, I don't understand why if I ask for language=ja-JP, it still returns a runtime even though Bullet Train has an existing Japanese translation with an empty duration field:
Відповідь від superboy97
30 вересня 2022, 10:09 НОЧІ/РАНКУ
There maybe fallbacks in some cases, but the normal return value in that case is either null or the absence of the field, as written in the API documentation.
Відповідь від Travis Bell
30 вересня 2022, 10:40 НОЧІ/РАНКУ
Hey @superboy97, I'm pretty sure the API does fall back now on the main details call, so there should always be a value unless you're looking at the translation data, which will show you the individual values.
I can't update the docs since the current version of Stoplight we're using has been EOL'd and is read only. I haven't found the time to get things migrated to a new system yet.
Відповідь від superboy97
30 вересня 2022, 11:15 НОЧІ/РАНКУ
In that case, @orestegabo , if you want more help, you need to post here the exact query you are using (just replace your API key with a generic text like "API_KEY") and the result you get.
Відповідь від orestegabo
30 вересня 2022, 11:21 ДНЯ/ВЕЧОРА
Thank you everyone for help, i have tried to resolve the issue, and I'm getting the runtime from
But when i'm trying to display it inside my Scaffold, it doenst show anything, but the when printing in the console, it show the real value It is rather displaying the initial value of _runtime inside the Scaffold, which means that it is probably displaying the value of _runtie inside the Scaffold before receiving the real data , and then after don't update inside the Scaffold.
Is there anyone to suggest the answer ?
Відповідь від superboy97
1 жовтня 2022, 12:18 НОЧІ/РАНКУ
I don't know Scaffold, so I can't help you on this.