| 9 | * Recursive scan movie folder, try to extract imdbid from *.nfo files |
| 10 | * [wiki:XMLRPC#LogIn LogIn()] first (anonymous user is OK) |
| 11 | * For [wiki:DevReadFirst#Videofilesextensions movies] with detected imdbid call [wiki:XMLRPC#InsertMovieHash InsertMovieHash()] |
| 12 | * For movies with no imdbid call [wiki:XMLRPC#CheckMovieHash2] or [wiki:XMLRPC#CheckMovieHash] |
| 13 | * CheckMovieHash2 can return more imdbid matches per movie, when user selects one, call [wiki:XMLRPC#InsertMovieHash InsertMovieHash()] |
| 14 | * If you get no results, you can call [wiki:XMLRPC#SearchMoviesOnIMDB SearchMoviesOnIMDB()], after user selects right movie call [wiki:XMLRPC#InsertMovieHash InsertMovieHash()] |
| 16 | pretty simple, isn't it ? :) |
| 17 | |
| 18 | == How to extract imdbid from *.nfo files == |
| 19 | * First read about common [wiki:DevReadFirst#Gettingvideoinformation structure of video files] |
| 20 | * Scan for one *.nfo file in firectory, extract IMDBID using this regexp: '''/imdb\.[^\/]+\/title\/tt(\d+)/i''', you find imdbid in $1. Common links are: |
| 21 | * http://www.imdb.com/title/tt0783233/ |
| 22 | * http://imdb.com/title/tt0426931/ |
| 23 | * http://www.us.imdb.com/title/tt0421082/ |
| 24 | |
| 25 | == Notes == |
| 26 | There should be nice, if your application supports [wiki:DevReadFirst#RARsupport RAR archives]. |
| 27 | |