The Movie Database サポート

I have seen the raw Json data of now playing movies and I have used Retrofit library to parse the data and I want to display the image also but when I am pasting the link of poster path in the browser it is not returning any image so I just want to know that if I write the code for fetching the image using glide library will it give me the image or not.

4 replies (on page 1 of 1)

Jump to last post

The Link to the image is made up of three parts : 1. base_url 2. file_size and 3. poster_path. The API returns the last part only that looks something like this - /iNpz2DgTsTMPaDRZq2tnbqjL2vF.jpg

base_url and a list of sizes available can be fetched using the configuration method. But this does not change that often so you can use https://image.tmdb.org/t/p/ for base_url and any one of these sizes for file_size:

  1. w45
  2. w92
  3. w154
  4. w185
  5. w300
  6. w500
  7. original

But it is recommended by the developer to cache this data and check for updates every now and then.

combining the base_url, file_size and poster_path you will get the complete URL for the poster. Like this https://image.tmdb.org/t/p/w640/iNpz2DgTsTMPaDRZq2tnbqjL2vF.jpg

Another little thing - There is another size, w640 that works for posters as well but it is not mentioned in the configuration API, So Travis will have to confirm with this one.

Hope that helps

Hey @Prithu Only because I've seen you answer this question twice, we have some documentation around this you can link to that might help.

This article can be helpful to share. wink Usually, I'll also link to this one about image languages because it can be helpful to people as well.

Will do. Thanks !

Thanks It worked

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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