Unifica admin società/squadre e YouTube Full con fallback MLTV.
Premium Full senza canale società usa il canale piattaforma come Light; in app restano solo Match Live TV e YouTube Live. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,19 +6,20 @@ module Youtube
|
||||
|
||||
def initialize(team)
|
||||
@team = team
|
||||
@status = TeamStatus.new(team)
|
||||
@mode = team.entitlements.plan.youtube_mode
|
||||
end
|
||||
|
||||
def resolve
|
||||
if @mode == "matchlivetv_light" && PlatformCredential.configured?
|
||||
if @status.uses_platform_channel?
|
||||
PlatformCredential.new
|
||||
else
|
||||
elsif @mode == "team"
|
||||
@team.youtube_credential
|
||||
end
|
||||
end
|
||||
|
||||
def uses_platform_channel?
|
||||
@mode == "matchlivetv_light" && PlatformCredential.configured?
|
||||
@status.uses_platform_channel?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user