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; displayLanguage:(NSString *)displayLanguage;
@end @end
// uYouLocal fix
@interface YTLocalPlaybackController : NSObject
- (id)activeVideo;
@end
// BigYTMiniPlayer // BigYTMiniPlayer
@interface YTMainAppVideoPlayerOverlayView : UIView @interface YTMainAppVideoPlayerOverlayView : UIView
- (UIViewController *)_viewControllerForAncestor; - (UIViewController *)_viewControllerForAncestor;
+8
View File
@@ -177,6 +177,14 @@ BOOL ytMiniPlayer() {
} }
%end %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 // YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
%hook YTVideoQualitySwitchControllerFactory %hook YTVideoQualitySwitchControllerFactory
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder { - (id)videoQualitySwitchControllerWithParentResponder:(id)responder {