Added a browse Artist menu. The playlist creation and everything is
[MenuTunes.git] / MainController.m
index eb1aa3f..5406ad9 100755 (executable)
@@ -557,6 +557,17 @@ static MainController *sharedController;
     [self timerUpdate];
 }
 
     [self timerUpdate];
 }
 
+- (void)makePlaylistWithTerm:(NSString *)term ofType:(int)type
+{
+    ITDebugLog(@"Making playlist with term %@, type %i", term, type);
+    NS_DURING
+        [[self currentRemote] makePlaylistWithTerm:term ofType:type];
+    NS_HANDLER
+        [self networkError:localException];
+    NS_ENDHANDLER
+    ITDebugLog(@"Done making playlist");
+}
+
 - (void)showPlayer
 {
     ITDebugLog(@"Beginning show player.");
 - (void)showPlayer
 {
     ITDebugLog(@"Beginning show player.");
@@ -930,7 +941,7 @@ static MainController *sharedController;
             }
         }
         
             }
         }
         
-        if ( [df boolForKey:@"showPlayCount"] && ![self radioIsPlaying] ) {
+        if ( [df boolForKey:@"showPlayCount"] && ![self radioIsPlaying] && [[self currentRemote] currentSource] == ITMTRemoteLibrarySource ) {
             NS_DURING
                 playCount = [[self currentRemote] currentSongPlayCount];
             NS_HANDLER
             NS_DURING
                 playCount = [[self currentRemote] currentSongPlayCount];
             NS_HANDLER