Skip to content

Commit

Permalink
Replace YouTube's download with uYou's (v19.20.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealFoxster committed Sep 7, 2024
1 parent 256abd6 commit f399826
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,19 @@ YTMainAppControlsOverlayView *controlsOverlayView;
for (ELMPBElement *element in listOptions) {
ELMPBProperties *properties = [element properties];
ELMPBIdentifierProperties *identifierProperties = [properties firstSubmessage];
NSString *identifier = [identifierProperties identifier];
if ([identifier containsString:@"offline_upsell_dialog"]) {
// 19.30.2
if ([identifierProperties respondsToSelector:@selector(identifier)]) {
NSString *identifier = [identifierProperties identifier];
if ([identifier containsString:@"offline_upsell_dialog"]) {
if ([controlsOverlayView respondsToSelector:@selector(uYou)]) {
[controlsOverlayView uYou];
}
return;
}
}
// 19.20.2
NSString *description = [identifierProperties description];
if ([description containsString:@"offline_upsell_dialog"]) {
if ([controlsOverlayView respondsToSelector:@selector(uYou)]) {
[controlsOverlayView uYou];
}
Expand Down

0 comments on commit f399826

Please sign in to comment.