alhrock / phptvdb

Automatically exported from code.google.com/p/phptvdb
0 stars 0 forks source link

Code changed? No results #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download and install fresh copy of files
2. Run example from Ryans Website

I have downloaded and install a fresh copy of the files. I have added my
API key. I then create a blank file and insert the following PHP example
from your website.

<?php
    include('TVDB.php');

    //Returns array of TV_Show objects matching 
    //'Battlestar Galactica'
    $tvShows = TV_Shows::search("Battlestar Galactica"); 

    $tvShow = $tvShows[0];

    //'Battlestar Galactica (2003)'
    echo $tvShow->seriesName;

    //array('Edward James Olmos', 'Grace Park')
    print_r($tvShow->actors); 

    //Fetch a specific episode. getEpisode($season, $episode)
    $tvEpisode = $tvShow->getEpisode(2, 11);

    //'Resurrection Ship (1)'
    echo $tvEpisode->name; 

    //'The Battlestars Galactica and...'  
    echo $tvEpisode->overview; 
?>

This results in the following error

Fatal error: Call to a member function getEpisode() on a non-object in
/home/usenettv/public_html/test2/index.php on line 17

I've been having a few problems with the code recently. The search by ID
function seems to be broken. The search by name function also seemed broken
but was fixed after changing my code, as outlined by Issue 2.

Using this method isn't as precise however, it also doesn't pull as much
information as search by ID does.

Original issue reported on code.google.com by Iveo...@hotmail.com on 17 Mar 2009 at 12:21

GoogleCodeExporter commented 8 years ago
I can confirm that this library is completely un-usable currently. I assume 
something
changed with thetvdb? I can't look up any shows whether I use ID or name.

Original comment by midgetspy on 19 Mar 2009 at 8:41

GoogleCodeExporter commented 8 years ago
Hi, I just found out that people are filing issues, I wasn't receiving any 
emails.
I'll look into this problem. 

Original comment by ryan.doherty on 27 Mar 2009 at 5:14

GoogleCodeExporter commented 8 years ago
I've updated some code in 1.0.2, which is available for download. Unit tests all
pass, so these issues are either fixed or not PHPTVDB's issue.

Original comment by ryan.doherty on 27 Mar 2009 at 7:26