Merge pull request #70 from jellyfin/create-pull-request/patch

[ci] SwiftLint
This commit is contained in:
aiden vigue 2021-06-18 11:37:31 -04:00 committed by GitHub
commit 9c051206ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ struct MainTabView: View {
TabView(selection: $tabSelection) {
HomeView()
.offset(y: -1) //don't remove this. it breaks tabview on 4K displays.
.offset(y: -1) // don't remove this. it breaks tabview on 4K displays.
.tabItem {
Text(Tab.home.localized)
Image(systemName: "house")
@ -74,4 +74,4 @@ extension MainTabView {
}
}
//stream ancient dreams in a modern land by MARINA!
// stream ancient dreams in a modern land by MARINA!

View File

@ -326,8 +326,8 @@ class PlayerViewController: UIViewController, VLCMediaDelegate, VLCMediaPlayerDe
deliveryUrl = nil
}
let subtitle = Subtitle(name: stream.displayTitle ?? "Unknown", id: Int32(stream.index!), url: deliveryUrl, delivery: stream.deliveryMethod!, codec: stream.codec ?? "webvtt")
if(subtitle.delivery != .encode) {
if subtitle.delivery != .encode {
subtitleTrackArray.append(subtitle)
}
}
@ -370,8 +370,8 @@ class PlayerViewController: UIViewController, VLCMediaDelegate, VLCMediaPlayerDe
deliveryUrl = nil
}
let subtitle = Subtitle(name: stream.displayTitle ?? "Unknown", id: Int32(stream.index!), url: deliveryUrl, delivery: stream.deliveryMethod!, codec: stream.codec ?? "webvtt")
if(subtitle.delivery != .encode) {
if subtitle.delivery != .encode {
subtitleTrackArray.append(subtitle)
}
}