jreklund / php4dvd

php4dvd is an open source php/mysql powered movie database. Catalog your video collection with ease. Automatic update of information and images.
GNU General Public License v3.0
83 stars 44 forks source link

Added tmdb #67

Open Ajtak opened 3 years ago

Ajtak commented 3 years ago

Added themoviedb.org. I think, that tmdb is better than IMDB for more users.

Its required upgrade database with simple query:

ALTER TABLE `movies` ADD `tmdbid` VARCHAR(20) NOT NULL AFTER `imdbid`; - I 'dont write upgrade scripts..

Its required fill API key, getting on https://www.themoviedb.org/documentation/api (Attributes to default config is added). Field is only visible if API key is set.

image

GoldMnaPro2014 commented 3 years ago

Hello, can you add screenshots and a description of the episodes to the film or series?

Ruppig commented 3 years ago

Hi Ajtak, TMDB integration is great! I used your repository to test it but after a fresh install, i only get a blank webpage.

GoldMnaPro2014 commented 3 years ago

Execute the command: ALTER TABLE movies ADD tmdbid VARCHAR(20) NOT NULL AFTER imdbid;

Ruppig commented 3 years ago

Hi GoldMnaPro2014, i have done this. grafik

GoldMnaPro2014 commented 3 years ago

In the config.default.php file enable error output: was ini_set ('display_errors', '0'); now ini_set ('display_errors', '1'); (sorry for my English).

Ruppig commented 3 years ago

Hi GoldMnaPro2014, thank you for your patience and support. I don't know, what i did wrong the first time, but i startet over and now it is running! :-)

GoldMnaPro2014 commented 3 years ago

It's my pleasure)

jreklund commented 3 years ago

Thanks for the code! Haven't had the time to test it just yet, I can see that you changed a lot of formatting and left some commented code in there. So can't just merge it as is. Soon we may need to scrap imdbphp all together, as it may need a complete re-write regarding the latest changes to their website.

I had hoped to have re-write this project by now so that we could have used Composer for this. Don't really want to add more dependencies as I need to update them manually to keep everything working.

c0py7hat commented 2 years ago

Sorry that your description is too simple, I don’t understand how to add a TMDB search window in the background

duck7000 commented 9 months ago

@jreklund if you are interested i have converted my version of imdbphp to GraphQL and it is working great. It won't be directly usable in your program (it is not a fork!) but you may use my code to update your imdbphp version/clone/fork You can find it here: https://github.com/duck7000/imdbphp6