Movie IMDB info loaded for the folder (1 Viewer)

yevgenb

Portal Member
January 3, 2007
37
0
Dear Portal Developers,

I have the following question - does it make any sense to load IMDB information for folder as well as for file?
Here is a part of the code I'm talking about (GUIVideoFiles.cs line 1132):

private void SetMovieProperties(string path)
{
IMDBMovie info = new IMDBMovie();
bool isDirectory = false;
try
{
if (System.IO.Directory.Exists(path))
{
isDirectory = true;
string[] files = System.IO.Directory.GetFiles(path);
foreach (string file in files)
{
IMDBMovie movie = new IMDBMovie();
VideoDatabase.GetMovieInfo(file, ref movie);
if (!movie.IsEmpty)
{
info = movie;
break;
}
}
}
else
VideoDatabase.GetMovieInfo(path, ref info);

Without this it would would work flawlessly in the "Share View" with skins like StreamedMP, Monochrome, Pure Vision etc.
 

Users who are viewing this thread

Top Bottom