imdb stuff fixed and improved

This commit is contained in:
Master Kwoth
2016-03-27 05:01:22 +02:00
parent 26b9ec0fcf
commit e2ecc6e608
3 changed files with 101 additions and 121 deletions

View File

@ -93,11 +93,12 @@ $@"🌍 **Weather for** 【{obj["target"]}】
.Do(async e =>
{
if (!(await SearchHelper.ValidateQuery(e.Channel, e.GetArg("query")))) return;
await e.Channel.SendIsTyping();
string result;
try
{
var movie = ImdbScraper.ImdbScrape(e.GetArg("query"), true);
if (movie.status) result = movie.ToString();
if (movie.Status) result = movie.ToString();
else result = "Failed to find that movie.";
}
catch