uYouLocal crash workaround

This commit is contained in:
level3tjg 2022-06-23 12:42:28 -04:00
parent f2cb699e3b
commit 2116d96e6a
2 changed files with 13 additions and 0 deletions

View file

@ -37,6 +37,11 @@
displayLanguage:(NSString *)displayLanguage;
@end
// uYouLocal fix
@interface YTLocalPlaybackController : NSObject
- (id)activeVideo;
@end
// BigYTMiniPlayer
@interface YTMainAppVideoPlayerOverlayView : UIView
- (UIViewController *)_viewControllerForAncestor;

View file

@ -177,6 +177,14 @@ BOOL ytMiniPlayer() {
}
%end
// Workaround for https://github.com/MiRO92/uYou-for-YouTube/issues/140
%hook YTLocalPlaybackController
%new
- (id)activeVideoController {
return [self activeVideo];
}
%end
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
%hook YTVideoQualitySwitchControllerFactory
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {