The Movie Database 支持

Hi,

I've created a small project this weekend that let's me tag movies as seen or not seen and then also add movies to my watchlist super fast. The only perpose of this is to make it faster to do these operations when starting out.

When using the api I run into a problem. There is no seen status of movies. You could say that a rating means they have seen it, but I'm optimizing for speed so I don't want to rate movies (I just want to tag them as seen or not seen). To circumvent this I created a list called "seen". However the next time the user visits the site I have no way to check if a movie is in that list (I think, can't find it).

So I would like a /list/{id}/movie/{id}

Another way to get around this problem would be to get the list and then cross check that the movie is not in the list, however this is not really possible (or at least easy) as that api call implements pagination.

10 回复(第 1 页,共 1 页)

Jump to last post

If you're using our movie watch list functionality, you can use the /movie/account_status method to quickly check on the rating, watchlist and favourite status of any movie.

If you're manually building a list, there isn't much you can do except check to see if the ID is already part of the list.

How would you check if the id is in the list? I mean you don't even know how many pages is in the list.

Ya, there's a few things to mention:

  1. There should be the pagination info (item_count, item_pages, current_page, total_pages) delivered in this result.
  2. Pagination should work, which it looks like it's not. This method was re-written last week and it looks like I missed that.
  3. If you're requiring a TMDb session anyways, you still might find using our official "watchlist" feature to be better. You can sort the results and when users log in, there's already a list within every account called "Personal watchlist". Creating a second watchlist is kind of confusing, isn't it? There's also the existing feature of being able to check on the status of a movie with this (as mentioned above). Basically, it does everything you want.

I've created a new ticket for this and will look into this week.

Oh interesting, thanks for the info.

Well yeah I'm using the default watchlist, but I also have a "seen list" for movies that the user has seen. As I optimize for speed rating each movie in order to mark them as seen is not desired.

Ya, ok. I get where you are coming from better now.

Back to your first post, it was indeed one of the intentions of the "rated" list. Rated == seen.

If that's not an assumption you want to use, the only option you have is to use a list, which is what you are already doing. Once pagination is hooked up you can up zip through each page and check for an ID.

I'll have to think about whether having a way to query a list for an id makes sense.

Cool :-) Thank you very much. Are you the lead dev or something?

Cool :-) Thank you very much.

No problem.

Are you the lead dev or something?

Founder and lead developer, yes.

Then thanks a million :) it's a very nice project. I have some pain points with it though, but I don't suppose this is the best place to talk about that :)

But if you would ever like some feedback and an awful lot of admiration please guide me to a more appropriate venue for such talks.

The general forum is as good as any place for feedback. Unless you want to email me, which is fine too, travis [at] themoviedb.org.

Cheers.

Hey Andreas,

You'll be interested to see this: http://docs.themoviedb.apiary.io/#get-%2F3%2Flist%2F%7Bid%7D%2Fitem_status

Cheers.

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区