This commit is contained in:
Trey t
2023-07-29 12:03:40 -05:00
parent 1997abeff6
commit 173f39cc5f
7 changed files with 49 additions and 12 deletions

View File

@@ -95,18 +95,18 @@ class VideoURLCreator {
switch thotStyle {
case .always:
urlString = workout?.femaleVideos?.randomElement()
urlString = DataStore.shared.randomVideoFor(gender: "female")
case .never:
urlString = defaultVideoURLStr
case .recovery:
if exerciseName?.lowercased() == "recover" {
urlString = workout?.femaleVideos?.randomElement()
urlString = DataStore.shared.randomVideoFor(gender: "female")
} else {
urlString = defaultVideoURLStr
}
case .random:
if Bool.random() {
urlString = workout?.femaleVideos?.randomElement()
urlString = DataStore.shared.randomVideoFor(gender: "female")
} else {
urlString = defaultVideoURLStr
}