Skip to content

Commit

Permalink
filter out iTunes LP tracks when playing
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfer committed May 15, 2013
1 parent bdf90d9 commit 80f6255
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/QSiTunesActionProvider.m
Expand Up @@ -110,9 +110,9 @@ - (void)playUsingDynamicPlaylist:(NSArray *)trackList
return;
}
}
// filter out PDFs and (optionally) videos
// filter out booklets, iTunes LP, and (optionally) videos
BOOL skipVideos = ![[NSUserDefaults standardUserDefaults] boolForKey:@"QSiTunesIncludeVideos"];
NSString *filterString = [NSString stringWithFormat:@"kind != '%@'", QSiTunesBookletKind];
NSString *filterString = [NSString stringWithFormat:@"kind != '%@' AND kind != '%@'", QSiTunesBookletKind, QSiTunesLPKind];
if (skipVideos) {
filterString = [filterString stringByAppendingFormat:@" AND videoKind == %i", iTunesEVdKNone];
}
Expand Down
1 change: 1 addition & 0 deletions QSiTunesDefines.h
Expand Up @@ -11,6 +11,7 @@
#define ITUNESLIBRARY [@"~/Music/iTunes/iTunes Music Library.xml" stringByStandardizingPath]
#define QSiTunesDynamicPlaylist @"Quicksilver"
#define QSiTunesBookletKind @"PDF document"
#define QSiTunesLPKind @"iTunes LP"

#define QSiTunesTrackIDPboardType @"com.apple.itunes.track"
#define QSiTunesPlaylistIDPboardType @"com.apple.itunes.playlist"
Expand Down

0 comments on commit 80f6255

Please sign in to comment.