Exemplo n.º 1
0
 private void OnThreadMessage(GUIMessage message)
 {
     switch (message.Message)
     {
     case GUIMessage.MessageType.GUI_MSG_PLAYING_10SEC:
         if (GUIWindowManager.ActiveWindow == GetID)
         {
             // SV
             //if (handler != null && handler.CurrentView == "Top100") return;
         }
         string strFile = message.Label;
         if (strFile.StartsWith(@"http://"))
         {
             break; // Don't try increasing the Top100 for streams
         }
         if (Util.Utils.IsAudio(strFile))
         {
             MusicDatabase dbs = MusicDatabase.Instance;
             dbs.IncrTop100CounterByFileName(strFile);
         }
         break;
     }
 }