Ok now, here's a awesome index.php with a working sample example: Note: I don't even know most of these movies, those are only filenames, I didn't really care about finding a good list of movie files. Let's say you have a movies directory filled with movie files run this in a terminal if you want to simulate things a little touch .America.26.mkv I used omdbapi because there's no documentation for the imdb api, see on stack overflow PHP and javascript example I started something in php, but at the end of this answer, there is a well working solution with python and guessit ) You could do everything from your own too, but I personally think this is a big challenge.įirst, you need a way to parse movie titles from unreadable movie names (by guessing them), than, you want to send the titles to the imdb api, once you think the answers are ok, you have to ask your program to rename original files.ĭoing everything in php and javascript is possible, but I think it is easier to accomplish in a language like python. There is lm which uses imdbpy and is like the ls command, but for movies and it's written in python, I did not test it.
0 Comments
Leave a Reply. |