Skip to content

Commit

Permalink
🐛 :: [#1283] 누락 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Sep 1, 2024
1 parent f0f5146 commit c5a2182
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,16 @@ private extension CreditSongListTabItemReactor {
))
}

return navigateMutation(navigateType: .playYoutube(ids: containTargetSongIDs))
let isOnlyShorts = currentState.songs
.filter({ currentState.selectedSongs.contains($0.id) })
.allSatisfy({ $0.title.isContainShortsTagTitle })
let playPlatform = if isOnlyShorts {
WakmusicYoutubePlayer.PlayPlatform.youtube
} else {
WakmusicYoutubePlayer.PlayPlatform.automatic
}

return navigateMutation(navigateType: .playYoutube(ids: containTargetSongIDs, playPlatform: playPlatform))
}

func reachedBottom() -> Observable<Mutation> {
Expand Down

0 comments on commit c5a2182

Please sign in to comment.