[create-pull-request] automated change (#52)
Co-authored-by: acvigue <acvigue@users.noreply.github.com>
This commit is contained in:
parent
18cc3ac15d
commit
770ad0fbf8
|
@ -274,7 +274,7 @@ struct ConnectToServerView: View {
|
|||
ForEach(publicUsers, id: \.id) { publicUser in
|
||||
HStack {
|
||||
Button() {
|
||||
if (publicUser.hasPassword ?? true) {
|
||||
if publicUser.hasPassword ?? true {
|
||||
lastPublicUsers = publicUsers
|
||||
username = publicUser.name ?? ""
|
||||
usernameDisabled = true
|
||||
|
|
|
@ -147,7 +147,7 @@ struct ContentView: View {
|
|||
.environmentObject(globalData)
|
||||
} else {
|
||||
if !jsi.did {
|
||||
if(isLoading) {
|
||||
if isLoading {
|
||||
ProgressView()
|
||||
} else {
|
||||
VStack {
|
||||
|
@ -169,7 +169,7 @@ struct ContentView: View {
|
|||
LibraryView(usingParentID: library_id,
|
||||
title: library_names[library_id] ?? "", usingFilters: recentFilterSet)
|
||||
}) {
|
||||
HStack() {
|
||||
HStack {
|
||||
Text("See All").font(.subheadline).fontWeight(.bold)
|
||||
Image(systemName: "chevron.right").font(Font.subheadline.bold())
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ struct LatestMediaView: View {
|
|||
.fontWeight(.semibold)
|
||||
.foregroundColor(.primary)
|
||||
.lineLimit(1)
|
||||
if(item.productionYear != nil) {
|
||||
if item.productionYear != nil {
|
||||
Text(String(item.productionYear ?? 0))
|
||||
.foregroundColor(.secondary)
|
||||
.font(.caption)
|
||||
|
|
|
@ -84,7 +84,7 @@ struct LibrarySearchView: View {
|
|||
.fontWeight(.semibold)
|
||||
.foregroundColor(.primary)
|
||||
.lineLimit(1)
|
||||
if(item.productionYear != nil) {
|
||||
if item.productionYear != nil {
|
||||
Text(String(item.productionYear ?? 0))
|
||||
.foregroundColor(.secondary)
|
||||
.font(.caption)
|
||||
|
|
|
@ -122,7 +122,7 @@ struct LibraryView: View {
|
|||
.fontWeight(.semibold)
|
||||
.foregroundColor(.primary)
|
||||
.lineLimit(1)
|
||||
if(item.productionYear != nil) {
|
||||
if item.productionYear != nil {
|
||||
Text(String(item.productionYear ?? 0))
|
||||
.foregroundColor(.secondary)
|
||||
.font(.caption)
|
||||
|
|
|
@ -96,7 +96,7 @@ struct MovieItemView: View {
|
|||
.fixedSize(horizontal: false, vertical: true)
|
||||
.offset(y: -4)
|
||||
HStack {
|
||||
if(item.productionYear != nil) {
|
||||
if item.productionYear != nil {
|
||||
Text(String(item.productionYear ?? 0)).font(.subheadline)
|
||||
.fontWeight(.medium)
|
||||
.foregroundColor(.secondary)
|
||||
|
@ -313,7 +313,7 @@ struct MovieItemView: View {
|
|||
.offset(x: 14, y: 0)
|
||||
Spacer().frame(height: 1)
|
||||
HStack {
|
||||
if(item.productionYear != nil) {
|
||||
if item.productionYear != nil {
|
||||
Text(String(item.productionYear ?? 0)).font(.subheadline)
|
||||
.fontWeight(.medium)
|
||||
.foregroundColor(.secondary)
|
||||
|
|
|
@ -296,7 +296,7 @@ struct SeasonItemView: View {
|
|||
}
|
||||
|
||||
var body: some View {
|
||||
if(isLoading) {
|
||||
if isLoading {
|
||||
ProgressView()
|
||||
.onAppear(perform: onAppear)
|
||||
} else {
|
||||
|
|
|
@ -51,7 +51,7 @@ struct SeriesItemView: View {
|
|||
@State private var tracks: [GridItem] = []
|
||||
|
||||
var body: some View {
|
||||
if(isLoading) {
|
||||
if isLoading {
|
||||
ProgressView()
|
||||
.onAppear(perform: onAppear)
|
||||
} else {
|
||||
|
|
|
@ -310,7 +310,7 @@ class PlayerViewController: UIViewController, VLCMediaDelegate, VLCMediaPlayerDe
|
|||
for stream in mediaSource.mediaStreams! {
|
||||
if stream.type == .subtitle {
|
||||
var deliveryUrl: URL?
|
||||
if(stream.deliveryMethod == .external) {
|
||||
if stream.deliveryMethod == .external {
|
||||
deliveryUrl = URL(string: "\(globalData.server.baseURI!)\(stream.deliveryUrl!)")!
|
||||
} else {
|
||||
deliveryUrl = nil
|
||||
|
@ -351,7 +351,7 @@ class PlayerViewController: UIViewController, VLCMediaDelegate, VLCMediaPlayerDe
|
|||
for stream in mediaSource.mediaStreams! {
|
||||
if stream.type == .subtitle {
|
||||
var deliveryUrl: URL?
|
||||
if(stream.deliveryMethod == .external) {
|
||||
if stream.deliveryMethod == .external {
|
||||
deliveryUrl = URL(string: "\(globalData.server.baseURI!)\(stream.deliveryUrl!)")!
|
||||
} else {
|
||||
deliveryUrl = nil
|
||||
|
|
|
@ -52,7 +52,7 @@ extension BaseItemDto {
|
|||
|
||||
if self.primaryImageAspectRatio ?? 0.0 < 1.0 {
|
||||
imageType = "Backdrop"
|
||||
if(!(self.backdropImageTags?.isEmpty ?? true)) {
|
||||
if !(self.backdropImageTags?.isEmpty ?? true) {
|
||||
imageTag = (self.backdropImageTags ?? [""])[0]
|
||||
}
|
||||
} else {
|
||||
|
@ -62,7 +62,7 @@ extension BaseItemDto {
|
|||
|
||||
if imageTag == "" {
|
||||
imageType = "Backdrop"
|
||||
if(!(self.parentBackdropImageTags?.isEmpty ?? true)) {
|
||||
if !(self.parentBackdropImageTags?.isEmpty ?? true) {
|
||||
imageTag = (self.parentBackdropImageTags ?? [""])[0]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue