Version 5 (modified by os, 16 years ago) (diff) |
---|
Movie Identification
Introduction
No doubt there is requests for movie identification service - with submitting moviehash you can get IMDBID with some details. OpenSubtitles? database was designed to support this, but only with uploaded subtitles (that means, somebody upload subtitles with moviehash and according that we can get IMDBID). Now we support "full" movie identification, that means you can insert to database moviehashes without subtitles. It can be used in media players, scripts, etc...you can read more about this in forum
Work flow
- Recursive scan movie folder, try to extract imdbid from *.nfo files
- LogIn() first (anonymous user is OK)
- For movies with detected imdbid call InsertMovieHash()
- For movies with no imdbid call CheckMovieHash2() or CheckMovieHash()
- CheckMovieHash2 can return more imdbid matches per movie, when user selects one, call InsertMovieHash()
- If you get no results, you can call SearchMoviesOnIMDB(), after user selects right movie call InsertMovieHash()
pretty simple, isn't it ? :)
How to extract imdbid from *.nfo files
- First read about common structure of video files
- Scan for one *.nfo file in firectory, extract IMDBID using this regexp:
/imdb\.[^\/]+\/title\/tt(\d+)/i
- Common links are:
Notes
There should be nice, if your application supports RAR archives.