Skip to content

Commit

Permalink
fixup: remove comment & naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed May 11, 2024
1 parent f9c2d68 commit eacdc26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion XBMC Remote/VersionCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

+ (BOOL)hasRecordingIdPlaylistSupport;
+ (BOOL)hasGroupSingleItemSetsSupport;
+ (BOOL)hasShowEmptyTvShowSupport;
+ (BOOL)hasShowEmptyTvShowsSupport;
+ (BOOL)hasSortTokenReadSupport;
+ (BOOL)hasPvrSortSupport;
+ (BOOL)hasAlbumArtistOnlySupport;
Expand Down
2 changes: 1 addition & 1 deletion XBMC Remote/VersionCheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ + (BOOL)hasGroupSingleItemSetsSupport {
(AppDelegate.instance.APImajorVersion == 6 && AppDelegate.instance.APIminorVersion == 32 && AppDelegate.instance.APIpatchVersion >= 4);
}

+ (BOOL)hasShowEmptyTvShowSupport {
+ (BOOL)hasShowEmptyTvShowsSupport {
// ShowEmptyTvShows is enabled (supported from API 6.32.1 on)
return (AppDelegate.instance.APImajorVersion >= 7) ||
(AppDelegate.instance.APImajorVersion == 6 && AppDelegate.instance.APIminorVersion >= 33) ||
Expand Down
10 changes: 5 additions & 5 deletions XBMC Remote/tcpJSONRPC.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ - (void)readJSONRPCAPIVersion {
[self readSorttokens];
// Read 1-movie-set setting
[self readGroupSingleItemSets];
// Read empty-TvShow setting
[self readShowEmptyTvShow];

[self readShowEmptyTvShows];
}];
}

Expand All @@ -309,9 +309,9 @@ - (void)readGroupSingleItemSets {
}
}

- (void)readShowEmptyTvShow {
// Check if ShowEmptyTvShow is enabled
if ([VersionCheck hasShowEmptyTvShowSupport]) {
- (void)readShowEmptyTvShows {
// Check if ShowEmptyTvShows is enabled
if ([VersionCheck hasShowEmptyTvShowsSupport]) {
[[Utilities getJsonRPC]
callMethod:@"Settings.GetSettingValue"
withParameters:@{@"setting": @"videolibrary.showemptytvshows"}
Expand Down

0 comments on commit eacdc26

Please sign in to comment.