63 | | * and/or get IMDB ID from .nfo file. Make sure, you scan all the .nfo files in directory, if directory name is /^CD\d+$/ (CD1,CD2) search in parent directory, use this regex /imdb\.\w{2,3}\/title\/tt(\d+)/ (http://www.imdb.com/title/tt1735898/ http://www.imdb.it/title/tt1735898/) - match all, and then make sure, there is only ONE match after UNIQUE OF IMDB IDs. If you find more matches, it means, there is more .nfo in directory (for example users put in one directory whole TV-Series, or more movies with nfos), and result will be wrong. |
| 63 | * and/or get IMDB ID from .nfo file. Make sure, you scan all the .nfo files in directory, if directory name is |
| 64 | {{{ |
| 65 | /^CD\d+$/ |
| 66 | }}} |
| 67 | (CD1,CD2) search in parent directory, use this regex |
| 68 | {{{ |
| 69 | /imdb\.\w{2,3}\/title\/tt(\d+)/ |
| 70 | }}} |
| 71 | (http://www.imdb.com/title/tt1735898/ http://www.imdb.it/title/tt1735898/) - match all, and then make sure, there is only ONE match after UNIQUE OF IMDB IDs. If you find more matches, it means, there is more .nfo in directory (for example users put in one directory whole TV-Series, or more movies with nfos), and result will be wrong. |