Exemplo n.º 1
0
        public async Task <GuessitResult> GuessName(string filename)
        {
            try
            {
                var output = await AsyncProcess.StartWithOuput("guessit", $"-j \"{filename}\"", ProcessRedirectStream.StandardOuput);

                return(JsonConvert.DeserializeObject <GuessitResult>(output));
            }
            catch (Exception e)
            {
                Debug.Print("GuessIt error: " + e.Message);
                return(null);
            }
        }