Skip to content

Commit

Permalink
Support new YT
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Jan 24, 2024
1 parent 72a6da7 commit d255e19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TARGET := iphone:clang:latest:11.0
PACKAGE_VERSION = 1.1.3
PACKAGE_VERSION = 1.1.4
INSTALL_TARGET_PROCESSES = YouTube
ARCHS = arm64

Expand Down
6 changes: 5 additions & 1 deletion Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,11 @@ static YTQTMButton *createButtonBottom(YTInlinePlayerBarContainerView *self, NSS
}];
[sectionItems addObject:position];
}
[settingsViewController setSectionItems:sectionItems forCategory:YTVideoOverlaySection title:LOC(@"VIDEO_OVERLAY") titleDescription:nil headerHidden:NO];
NSString *title = LOC(@"VIDEO_OVERLAY");
if ([settingsViewController respondsToSelector:@selector(setSectionItems:forCategory:title:icon:titleDescription:headerHidden:)])
[settingsViewController setSectionItems:sectionItems forCategory:YTVideoOverlaySection title:title icon:nil titleDescription:nil headerHidden:NO];
else
[settingsViewController setSectionItems:sectionItems forCategory:YTVideoOverlaySection title:title titleDescription:nil headerHidden:NO];
}

- (void)updateSectionForCategory:(NSUInteger)category withEntry:(id)entry {
Expand Down

0 comments on commit d255e19

Please sign in to comment.