Skip to content

Commit

Permalink
chore: cutie fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Jul 9, 2024
1 parent b2d7884 commit 1f7b860
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class _VideoInfoController {
final res = YoutiPie.cacheBuilder.forVideoStreams(videoId: videoId);
final cached = res.read();
if (cached == null || cached.client != _usedClient) return null;
if (_requiresJSPlayer) {
if (_requiresJSPlayer && bypassJSCheck == false) {
if (!YoutiPie.cipher.isPrepared) {
YoutubeInfoController.ensureJSPlayerInitialized();
if (bypassJSCheck == false) return null; // the player is not prepared, hence the urls are just useless
return null; // the player is not prepared, hence the urls are just useless
}
}
return cached;
Expand Down
8 changes: 4 additions & 4 deletions lib/youtube/controller/youtube_account_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class _CurrentMembership {
return;
}
userPatreonTier.value = tier;
final ms = NamicoSubscriptionManager.usdToMembershipType(tier.ammountUSD);
final ms = tier.toMembershipType();
userMembershipTypePatreon.value = ms;
_updateGlobal(ms);
}
Expand All @@ -294,7 +294,7 @@ class _CurrentMembership {
return;
}
userPatreonTier.value = tier;
final ms = NamicoSubscriptionManager.usdToMembershipType(tier.ammountUSD);
final ms = tier.toMembershipType();
userMembershipTypePatreon.value = ms;
_updateGlobal(ms);
}
Expand All @@ -307,7 +307,7 @@ class _CurrentMembership {
deviceId: deviceId,
);
userSupabaseSub.value = sub;
final ms = NamicoSubscriptionManager.usdToMembershipType(sub.usd);
final ms = sub.toMembershipType();
userMembershipTypeSupabase.value = ms;
_updateGlobal(ms);
}
Expand All @@ -320,7 +320,7 @@ class _CurrentMembership {
deviceId: deviceId,
);
userSupabaseSub.value = sub;
final ms = NamicoSubscriptionManager.usdToMembershipType(sub.usd);
final ms = sub.toMembershipType();
userMembershipTypeSupabase.value = ms;
_updateGlobal(ms);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 3.1.0-beta+240708236
version: 3.1.1-beta+240709136

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 1f7b860

Please sign in to comment.