uYouLocal crash workaround

This commit is contained in:
level3tjg committed 2022-06-23 12:42:28 -04:00
1 parent f2cb699e3b
commit 2116d96e6a
2 files changed
+13

No files matched your search

+5
View File
@@ -37,6 +37,11 @@
displayLanguage:(NSString *)displayLanguage;
@end
// uYouLocal fix
@interface YTLocalPlaybackController : NSObject
- (id)activeVideo;
@end
// BigYTMiniPlayer
@interface YTMainAppVideoPlayerOverlayView : UIView
- (UIViewController *)_viewControllerForAncestor;
+8
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 {