Fix uYou player bar bug

This commit is contained in:
level3tjg 2022-08-28 02:02:18 -04:00
parent 11ddcd421d
commit 3aa7c57d82
2 changed files with 13 additions and 0 deletions

View file

@ -33,6 +33,10 @@
@interface boolSettingsVC : UIViewController
@end
@interface PlayerManager : NSObject
- (float)progress;
@end
// iOS16 fix
@interface OBPrivacyLinkButton : UIButton
- (instancetype)initWithCaption:(NSString *)caption

View file

@ -346,6 +346,15 @@ BOOL hidePaidPromotionCard() {
}
%end
// Prevent uYou player bar from showing when not playing downloaded media
%hook PlayerManager
- (void)pause {
if ([@([self progress]) isEqualToNumber:[NSDecimalNumber notANumber]])
return;
%orig;
}
%end
// Hide YouTube Shorts banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts
%hook YTAsyncCollectionView
- (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath {