The Movie Database 支持

Hi! After last update, I realise that my results using the "discovery" method got weird results Take a look:

http://api.themoviedb.org/3/discover/movie?api_key=XXXXX&vote_count.gte=10&sort_by=release_date.desc

{"adult":false,"backdrop_path":"/vkSD3JjyW7XKuK4z88mhPgqD2k1.jpg","id":229407,"original_title":"Puppy","release_date":"2013-12-10","poster_path":"/maBSw4YgUzjQoowiMI51FG0Npzc.jpg","popularity":0.36656922222498,"title":"Puppy","vote_average":8.4,"vote_count":24},

{"adult":false,"backdrop_path":"/uNa5sbuoVvXFIdVo0De2HJrrxOd.jpg","id":227156,"original_title":"The Giver","release_date":"2014-08-15","poster_path":"/pBId6jhii1vP2CShtrGLB3SuKhc.jpg","popularity":9.03227783839263,"title":"The Giver","vote_average":6.8,"vote_count":78}, ...

It is sorting the date release in a random way... Am I doing something wrong?

21 回复(第 2 页,共 2 页)

Jump to last post

上一页

@hosam: Can you take a look at the results now? We should be sorting by the first release date now.

@matt: Sorting by original_title.desc would is sorting Z-A, so you would indeed see the foreign chars first. If you're looking for A-Z, that would be original_title.asc. This is just sorting by the UTF-8 character bytes so things like punctuation have a lower code than numbers, which are lower than letters. See here.

Cheers.

yup the results now are back to normal. I think it is even bit better. Thanks man!

I understand why it's sorting Unicode first because of the character codes being higher, but because the translated title is what's being displayed it looks out of order. I'm guessing the system is not capable of sorting by translated title? My app let's you sort by title, date, and rating when browsing a genre, and the title sort looks broken to users. I've been debating the best way to handle it, and taking into consideration what users in other countries would see. I apologize for all of the questions - I am not the original author of this app, but it was turned over to me because the author didn't have time to update to the new API version. Not having ever seen the responses from the old version, I have no idea whether I'm seeing new behavior or not.

We only just added sorting by title, so it's a brand new feature that didn't exist until ~2 weeks ago.

Our search server is not able to sort by the translated title. There's no connection to a requested language and a result until it's further down the line, after the response has already been returned by search. We can only sort on static fields, hence it being original title.

Cheers.

Rats, that's what I thought. Thanks.

Hi guys, the Discover API is still broken. When you add the sorty_by=release_date all filters release_date.gte and release_date.lte are totally ignored. Here's my issue discussion: https://www.themoviedb.org/talk/58106900c3a3687477004f4f

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区