Update uYouPlus.xm

This commit is contained in:
arichornlover 2023-11-02 01:07:59 -05:00 committed by GitHub
parent 91ea6c8fe1
commit 9c11a8d6af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,20 @@ static void repositionCreateTab(YTIGuideResponse *response) {
}
%end
// Fix uYou crashing in YouTube 18.43.4 and higher
// uYouCrashFix - https://github.com/iCrazeiOS/uYouCrashFix
%hook YTPlayerViewController
%new
-(float)currentPlaybackRateForVarispeedSwitchController:(id)arg1 {
return [[self activeVideo] playbackRate];
}
%new
-(void)varispeedSwitchController:(id)arg1 didSelectRate:(float)arg2 {
[[self activeVideo] setPlaybackRate:arg2];
}
%end
# pragma mark - Tweaks
// IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
%hook YTVersionUtils