mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 19:12:06 +00:00
Merge pull request #621 from bhackel/fix/casting
Add toggle to fix casting
This commit is contained in:
commit
4c9316e642
2 changed files with 20 additions and 0 deletions
|
|
@ -279,6 +279,18 @@ NSData *cellDividerData;
|
||||||
- (BOOL)enableModularPlayerBarController { return NO; } // fixes some of the iSponorBlock problems
|
- (BOOL)enableModularPlayerBarController { return NO; } // fixes some of the iSponorBlock problems
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Fix Casting: https://github.com/arichornlover/uYouEnhanced/issues/606#issuecomment-2098289942
|
||||||
|
%group gFixCasting
|
||||||
|
%hook YTColdConfig
|
||||||
|
- (BOOL)cxClientEnableIosLocalNetworkPermissionReliabilityFixes { return YES; }
|
||||||
|
- (BOOL)cxClientEnableIosLocalNetworkPermissionUsingSockets { return NO; }
|
||||||
|
- (BOOL)cxClientEnableIosLocalNetworkPermissionWifiFixes { return YES; }
|
||||||
|
%end
|
||||||
|
%hook YTHotConfig
|
||||||
|
- (BOOL)isPromptForLocalNetworkPermissionsEnabled { return YES; }
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/
|
// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/
|
||||||
%hook YTCommerceEventGroupHandler
|
%hook YTCommerceEventGroupHandler
|
||||||
- (void)addEventHandlers {}
|
- (void)addEventHandlers {}
|
||||||
|
|
@ -1665,6 +1677,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
||||||
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
|
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
|
||||||
%init(gHideDoubleTapToSeekOverlay);
|
%init(gHideDoubleTapToSeekOverlay);
|
||||||
}
|
}
|
||||||
|
if (IS_ENABLED(@"fixCasting_enabled")) {
|
||||||
|
%init(gFixCasting);
|
||||||
|
}
|
||||||
|
|
||||||
// YTNoModernUI - @arichorn
|
// YTNoModernUI - @arichorn
|
||||||
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");
|
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");
|
||||||
|
|
@ -1719,4 +1734,8 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
||||||
if (![allKeys containsObject:@"showPlaybackRate"]) {
|
if (![allKeys containsObject:@"showPlaybackRate"]) {
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showPlaybackRate"];
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showPlaybackRate"];
|
||||||
}
|
}
|
||||||
|
// Set video casting fix default to enabled
|
||||||
|
if (![allKeys containsObject:@"fixCasting_enabled"]) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"fixCasting_enabled"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1155,6 +1155,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
SWITCH_ITEM2(LOC(@"NEW_MINIPLAYER_STYLE"), LOC(@"NEW_MINIPLAYER_STYLE_DESC"), @"bigYTMiniPlayer_enabled");
|
SWITCH_ITEM2(LOC(@"NEW_MINIPLAYER_STYLE"), LOC(@"NEW_MINIPLAYER_STYLE_DESC"), @"bigYTMiniPlayer_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"YT_RE_EXPLORE"), LOC(@"YT_RE_EXPLORE_DESC"), @"reExplore_enabled");
|
SWITCH_ITEM2(LOC(@"YT_RE_EXPLORE"), LOC(@"YT_RE_EXPLORE_DESC"), @"reExplore_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"Hide Indicators"), LOC(@"Hides all Indicators that were in the App."), @"hideSubscriptionsNotificationBadge_enabled");
|
SWITCH_ITEM2(LOC(@"Hide Indicators"), LOC(@"Hides all Indicators that were in the App."), @"hideSubscriptionsNotificationBadge_enabled");
|
||||||
|
SWITCH_ITEM2(LOC(@"Fix Casting"), LOC(@"Changes a few A/B flags to fix casting"), @"fixCasting_enabled");
|
||||||
SWITCH_ITEM(LOC(@"ENABLE_FLEX"), LOC(@"ENABLE_FLEX_DESC"), @"flex_enabled");
|
SWITCH_ITEM(LOC(@"ENABLE_FLEX"), LOC(@"ENABLE_FLEX_DESC"), @"flex_enabled");
|
||||||
|
|
||||||
if ([settingsViewController respondsToSelector:@selector(setSectionItems:forCategory:title:icon:titleDescription:headerHidden:)])
|
if ([settingsViewController respondsToSelector:@selector(setSectionItems:forCategory:title:icon:titleDescription:headerHidden:)])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue