diff --git a/Header.h b/Header.h index b9e7723..946b4d7 100644 --- a/Header.h +++ b/Header.h @@ -37,6 +37,11 @@ displayLanguage:(NSString *)displayLanguage; @end +// uYouLocal fix +@interface YTLocalPlaybackController : NSObject +- (id)activeVideo; +@end + // BigYTMiniPlayer @interface YTMainAppVideoPlayerOverlayView : UIView - (UIViewController *)_viewControllerForAncestor; diff --git a/uYouPlus.xm b/uYouPlus.xm index 4e0251d..f834d5d 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -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 {