Error displaying IMDB info in shares view (1 Viewer)

DickyT

Portal Member
November 17, 2008
5
0
Home Country
United Kingdom United Kingdom
Hi,

I have recently moved from MCE 2005 to Media Portal 1.0 RC 3 and am very impressed.

When in MyVideos on Shares view, and the share is highlighted, (but not yet selected) the movie description for the first movie within the share is displayed. How can I stop this happening?

Many thanks.
 

awatrin

MP Donator
  • Premium Supporter
  • December 7, 2008
    8
    0
    Home Country
    Brazil Brazil
    Hi, I'm having the same problem. It happens in all skins that shows IMDB info in shares view. Can anybody help us? Thanks in advance.
     

    -Manfred-

    Retired Team Member
  • Premium Supporter
  • May 15, 2007
    728
    343
    Home Country
    Finland Finland
    This is a bug in MP share view. Let see if this get corrected - I have correction for that already available but this should be noted/moved to bugs section.

    I know this is not a formal way to do this but here for devs if interested.

    GUIVideoFiles.cs:
    Code:
        private void SetMovieProperties(string path)
        {
          IMDBMovie info = new IMDBMovie();
          if (path == "..")
          {
            info.Reset();
            info.SetProperties();
            return;
          }
          bool isDirectory = false;
          bool isMultiMovie = false;
          bool isFound = 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)
                {
                  if (!isFound)
                  {
                    info = movie;
                    isFound = true;
                  }
                  else
                  {
                    isMultiMovie = true;
                    break;
                  }
                }
              }
            }
            else
              VideoDatabase.GetMovieInfo(path, ref info);
    
            if (info.IsEmpty)
              FetchMatroskaInfo(path, isDirectory, ref info);
    
            if (isMultiMovie)
              info.Reset();
            
            info.SetProperties();
            
          }
          catch (Exception) { }
        }
    
        private void item_OnItemSelected(GUIListItem item, GUIControl parent)
        {
          SetMovieProperties(item.Path);      
          GUIFilmstripControl filmstrip = parent as GUIFilmstripControl;
          if (filmstrip != null) 
            filmstrip.InfoImageFileName = item.ThumbnailImage;      
        }
     

    Users who are viewing this thread

    Top Bottom