本文整理汇总了C#中MediaPortal.Video.Database.IMDBFetcher.OnDetailsNotFound方法的典型用法代码示例。如果您正苦于以下问题:C# IMDBFetcher.OnDetailsNotFound方法的具体用法?C# IMDBFetcher.OnDetailsNotFound怎么用?C# IMDBFetcher.OnDetailsNotFound使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MediaPortal.Video.Database.IMDBFetcher
的用法示例。
在下文中一共展示了IMDBFetcher.OnDetailsNotFound方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RefreshIMDB
//.........这里部分代码省略.........
}
}
else if (selectedMovie == -1)
{
if (!fetcher.OnMovieNotFound(fetcher))
{
return false;
}
if (!fetcher.OnRequestMovieTitle(fetcher, out strMovieName))
{
return false;
}
if (strMovieName == string.Empty)
{
return false;
}
}
}
else
{
if (fetcher.Count > 0)
{
// EPG - one result, get movie without ask
if (fetcher.Count == 1 && !addToDatabase)
{
selectedMovie = 0;
break;
}
int iMoviesFound = fetcher.Count;
//GEMX 28.03.08: There should always be a choice to enter the movie manually
// in case the 1 and only found name is wrong
if (iMoviesFound > 0)
{
if (!fetcher.OnSelectMovie(fetcher, out selectedMovie))
{
return false;
}
if (selectedMovie < 0)
{
if (!fetcher.OnRequestMovieTitle(fetcher, out strMovieName))
{
return false;
}
if (strMovieName == string.Empty)
{
return false;
}
}
}
}
else
{
if (!fetcher.OnMovieNotFound(fetcher))
{
return false;
}
if (!fetcher.OnRequestMovieTitle(fetcher, out strMovieName))
{
return false;
}
if (strMovieName == string.Empty)
{
return false;
}
}
}
} while (selectedMovie < 0);
if (!fetcher.FetchDetails(selectedMovie, ref currentMovie, addToDatabase))
{
return false;
}
IMDBMovie movieDetails = fetcher.Movie;
if (movieDetails != null)
{
Log.Info("RefreshIMDB() - Found movie and added info for: {0} (Year: {1})",
movieDetails.Title, movieDetails.Year);
movieDetails.SearchString = strMovieName;
currentMovie = movieDetails;
return true;
}
if (fetcher.Movie == null)
{
fetcher.Movie = currentMovie;
}
return fetcher.OnDetailsNotFound(fetcher);
}
return false;
}