The Movie Database 支持

Still I get "Evil Dead" in first position for Now Playing API request, API does not fetch updated results, now it should fetch "Pain & Gain" ,"Mud" or other movies which are released on this Friday, I found these movies in Coming Soon API request.

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

Jump to last post

上一页

sure I will check this tomorrow and report back with more detail if theres still an issue thanks

Still having the issue this morning. Our relevant code is listed below, it should show currently playing movies. However, we instead get the message that says Sorry, there are no currently released movies available. Thanks



$MovieString    =   '';
    if(count($CurrentMovieList))
    {
        foreach($CurrentMovieList as $MovieInfo)
        {           
            $MovieName          =   $MovieInfo['name'];
            $APIMovieID         =   $MovieInfo['id'];
            $MovieOverview      =   $MovieInfo['overview'];
            $ReleaseDate        =   date("F d, Y",strtotime($MovieInfo['released']));
            $MovieScheduleObj   =   new Movie_Schedule();
            #$MovieImage        =   $MovieScheduleObj->GetMoviePosterImage($APIMovieID,'thumb');
            $MovieImage         =   $MovieScheduleObj->GetTopRatedPoster($APIMovieID,'thumb');
            $EditMovieInfoLink  =   'http://www.themoviedb.org/movie/'.$APIMovieID;
            #echo "
".print_r($MovieInfo,"/n")."
"; $CheckExists = MovieExists($APIMovieID); $MovieString .= '
'.wp_nonce_field("movie_add","add_action").'
'.$MovieName.'
Release Date: '.$ReleaseDate.'
'.$MovieOverview.'
'; if(MovieExists($APIMovieID)) { $MovieString .= 'Movie Already Exists.'; } else { $MovieString .= ''; } $MovieString .= '
      '; } } else { $MovieString .= ' Sorry, there are no currently released movies available. '; } echo $MovieString;

The function getcurrentmovie leads to:


function GetCurrentMovieList($Title='', $ReleaseMinDate='-1 months', $ReleaseMaxDate='+1 months', $PageNumber=1, $Limit=2000)
    {
        $ReleaseMinDate =   strtotime($ReleaseMinDate);
        #echo '
'; #echo date("d m Y",$ReleaseMinDate); #echo '
';echo '
'; $ReleaseMaxDate = strtotime($ReleaseMaxDate); #echo '
'; #echo date("d m Y",$ReleaseMaxDate); #echo '
';echo '
'; $OtherParams = array('page'=>$PageNumber, 'per_page'=>$Limit, 'release_min'=> $ReleaseMinDate, 'release_max'=> $ReleaseMaxDate); $xml_movie_result = $this->TMDBJSONObj->browseMovies('release', 'asc', $OtherParams); #echo "
".print_r($xml_movie_result,"/n")."
"; $JDecode = array(); $JDecode = json_decode($xml_movie_result,TRUE); if(!is_array($JDecode[0])) { $JDecode = array(); } #echo count($JDecode); #echo "
".print_r($JDecode,"/n")."
"; return $JDecode; }

If you need more info please let me know and I can get our dev involved

We use the TMDb-PHP-API

What's the actual query you're submitting to the API? I don't see that in the code above.

travis, i edited my reply above with more code that may help. thanks

Ok, I think you're actually calling the /2.1/Movie.browse method. Which is not related to the issues described in this thread.

I'll have to see why 2.1 has stopped returning any results but I should mention that 2.1 has been EOL'd and given a firm shut down date of September 15. You're going to need to update your app before then or it will cease functioning all together.

We have re-created the "2.1 Movie.browse" method in v3. It's called discover, and that is the method you will have to migrate this feature to.

Yes, we are using 2.1 still, and evaluating our program to upgrade it to 3 per your email a week or 2 ago. We will be upgrading to 3 this summer.

Hey Phil,

This should resume working for you shortly.

Indeed it does work now, thank you!

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区