The Movie Database サポート

Hi, I'm new to using this db and still figuring things out. When I tried to run a discover for movies with runtime less than 60mins, the result I get is returning some movies with more than 60mins runtime.

https://api.themoviedb.org/3/discover/movie?api_key=MYAPIKEY&language=en-US&include_adult=false&include_video=false&page=1&with_runtime.lte=60

Result includes movies "Hereditary", "K-PAX", "Dances with Wolves" and more which have runtime of 127mins, 120mins, 181mins respectively.

Is there something wrong with my query?

8 replies (on page 1 of 1)

Jump to last post

Hi,

this was already discussed here. Your query is fine, but:

  • Hereditary had incorrectly set runtime to 2 minutes in lt-LT translation
  • K-PAX had incorrectly set runtime to 2 minutes in sr-RS translation
  • Dances with Wolves had incorrectly set runtime to 3 minutes in es-MX translation

I've corrected all above mentioned records, but unless @travisbell change how discover method with "&with_runtime=" parameter works (e.g. by taking into account query language), it may happen.

Alright, thanks for clarifying!

After looking through the API forum it seems that it's a known bug that discover/movies could return some inaccurate runtimes.

Guess I'll just figure out a way to get around this.

Just for extra clarification, there's two separate issues being discussed/mentioned here.

First is how discover now indexes runtimes, which is by looking at all of the available values. This is the correct way to do it, and won't be changing.

Second is to do with a bug that I know about with regards to querying runtimes with discover. That bug is being tracked here, which you can follow/vote for if you wish. It will be getting fixed in the next few weeks.

I believe the runtime query issues have been fixed, please let me know if you see it not working.

Cheers.

Hi Travis,

Thanks for the update!

I ran the same query again as above and although the result did show some movies that are less than 60 mins, it did include those that are over that runtime as well.

For example, the first result shows Cars which actually has a runtime of 117 mins.

Other results that came up were Deadpool (108 mins), Logan (137 mins), The Lion King (89mins), The Fate of the Furious (196 mins), Forrest Gump (142 mins), Harry Potter and the Prisoner of Azkaban (141 mins), Ted 2(115 mins), Goosebumps 2: Haunted Halloween (90 mins)..

This was only the first page but I suppose this issue might appear for the other pages as well unfortunately.

@AnimagusCat

It's the same issue again:

  • The Cars had es-MX translation with runtime 1 minute
  • Deadpool had id-ID translation with runtime 1 minute
  • Logan had sh-TW translation with runtime 2 minutes

and so on...

I've corrected the 3 above mentioned movies, but I'm not able to check them all. If I understand it correctly, this is intended behavior of the API, so it is on us to correct all wrong runtimes...

I've removed over 800 invalid movie runtimes, so discover with "&with_runtime.lte" should return more relevant results now.

Thanks @talestalker. I have a pretty simple way to help catch bad inputs that I’ll end up rolling out in the next few weeks. That will also improve things.

映画やテレビ番組が見つかりませんか?ログインして作成してください。

全般

s 検索バーに移動する
p プロファイルメニューを開く
esc 開いているウィンドウを閉じる
? キーボードショートカットウィンドウを開く

メディアのページ

b 戻る(または該当する場合は親に)
e 編集ページに行く

テレビ番組のシーズンのページ

(右矢印)次のシーズンに行く
(左矢印)前のシーズンに戻る

テレビ番組のエピソードのページ

(右矢印)次のエピソードに進む
(左矢印)前のエピソードに戻る

全ての画像のページ

a 画像追加ウィンドウを開く

全ての編集ページ

t 翻訳選択を開く
ctrl+ s フォームを送信する

ディスカッションのページ

n 新しいディスカッションを作成する
w 監視ステータスを切り替える
p 公開/非公開を切り替える
c 閉じる/開くを切り替える
a アクティビティを開く
r ディスカッションに返信
l 最後の返事に行く
ctrl+ enter メッセージを送信する
(右矢印)次のページ
(左矢印)前のページ

設定

このアイテムを評価したり、リストに追加したりしたいですか?

ログイン

メンバーではありませんか?

登録してコミュニティに参加