| 1010 | == !GuessMovieFromString == |
| 1011 | '''array !GuessMovieFromString( $token, array($string, ... ) )''' |
| 1012 | |
| 1013 | '''WARNING!!! BETA QUALITY - THIS METHOD CAN CHANGE IN FUTURE, CONTACT US FOR MORE INFO''' |
| 1014 | |
| 1015 | Provides best guess for IMDB ID from any string. String can be file name of movie, or directory name. This method might be very slow, because it makes comparison in real time from different sources (then it is cached). You can use maximum 3 strings, others are ignored for performance reasons. |
| 1016 | |
| 1017 | Example output for $string = 'Aliens 1080p BluRay AC3 x264-ETRG.mkv', you might want data from '''BestGuess''' |
| 1018 | {{{ |
| 1019 | Array |
| 1020 | ( |
| 1021 | [status] => 200 OK |
| 1022 | [data] => Array |
| 1023 | ( |
| 1024 | [Aliens 1080p BluRay AC3 x264-ETRG.mkv] => Array |
| 1025 | ( |
| 1026 | [GuessIt] => Array |
| 1027 | ( |
| 1028 | [mimetype] => video/x-matroska |
| 1029 | [videoCodec] => h264 |
| 1030 | [container] => mkv |
| 1031 | [title] => Aliens |
| 1032 | [format] => BluRay |
| 1033 | [releaseGroup] => ETRG |
| 1034 | [screenSize] => 1080p |
| 1035 | [type] => movie |
| 1036 | [audioCodec] => AC3 |
| 1037 | ) |
| 1038 | |
| 1039 | [GuessMovieFromString] => Array |
| 1040 | ( |
| 1041 | [0090605] => Array |
| 1042 | ( |
| 1043 | [query] => Aliens 1080p BluRay AC3 x264-ETRG.mkv |
| 1044 | [IDMovieIMDB] => 0090605 |
| 1045 | [MovieName] => Aliens |
| 1046 | [MovieYear] => 1986 |
| 1047 | [MovieKind] => movie |
| 1048 | [score] => 688 |
| 1049 | ) |
| 1050 | |
| 1051 | ) |
| 1052 | |
| 1053 | [GetIMDBSuggest] => Array |
| 1054 | ( |
| 1055 | [0090605] => Array |
| 1056 | ( |
| 1057 | [MovieName] => Aliens |
| 1058 | [MovieYear] => 1986 |
| 1059 | [MovieKind] => movie |
| 1060 | [IDMovieIMDB] => 0090605 |
| 1061 | ) |
| 1062 | |
| 1063 | [0409847] => Array |
| 1064 | ( |
| 1065 | [MovieName] => Cowboys & Aliens |
| 1066 | [MovieYear] => 2011 |
| 1067 | [MovieKind] => movie |
| 1068 | [IDMovieIMDB] => 0409847 |
| 1069 | ) |
| 1070 | |
| 1071 | [0892782] => Array |
| 1072 | ( |
| 1073 | [MovieName] => Monsters vs. Aliens |
| 1074 | [MovieYear] => 2009 |
| 1075 | [MovieKind] => movie |
| 1076 | [IDMovieIMDB] => 0892782 |
| 1077 | ) |
| 1078 | |
| 1079 | [0758730] => Array |
| 1080 | ( |
| 1081 | [MovieName] => AVPR: Aliens vs Predator - Requiem |
| 1082 | [MovieYear] => 2007 |
| 1083 | [MovieKind] => movie |
| 1084 | [IDMovieIMDB] => 0758730 |
| 1085 | ) |
| 1086 | |
| 1087 | [3797808] => Array |
| 1088 | ( |
| 1089 | [MovieName] => Aliens on the Moon: The Truth Exposed |
| 1090 | [MovieYear] => 2014 |
| 1091 | [MovieKind] => movie |
| 1092 | [IDMovieIMDB] => 3797808 |
| 1093 | ) |
| 1094 | |
| 1095 | ) |
| 1096 | |
| 1097 | [BestGuess] => Array |
| 1098 | ( |
| 1099 | [IDMovieIMDB] => 0090605 |
| 1100 | [MovieName] => Aliens |
| 1101 | [MovieYear] => 1986 |
| 1102 | [MovieKind] => movie |
| 1103 | [Reason] => Data Intersection |
| 1104 | ) |
| 1105 | |
| 1106 | ) |
| 1107 | |
| 1108 | ) |
| 1109 | |
| 1110 | [seconds] => 1.058 |
| 1111 | ) |
| 1112 | }}} |
| 1113 | |
| 1114 | '''Fields explanation:''' |
| 1115 | All field are self-explained. |
| 1116 | |
| 1117 | ---- |
| 1118 | |