cleanup
This commit is contained in:
parent
70506a276e
commit
7b67f4bc2a
|
@ -93,13 +93,10 @@ public extension BaseItemDto {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getThumbImage(maxWidth: Int) -> URL {
|
func getThumbImage(maxWidth: Int) -> URL {
|
||||||
let imageType = ImageType.thumb
|
|
||||||
let imageItemId = id ?? ""
|
|
||||||
|
|
||||||
let x = UIScreen.main.nativeScale * CGFloat(maxWidth)
|
let x = UIScreen.main.nativeScale * CGFloat(maxWidth)
|
||||||
|
|
||||||
let urlString = ImageAPI.getItemImageWithRequestBuilder(itemId: imageItemId,
|
let urlString = ImageAPI.getItemImageWithRequestBuilder(itemId: id ?? "",
|
||||||
imageType: imageType,
|
imageType: .thumb,
|
||||||
maxWidth: Int(x),
|
maxWidth: Int(x),
|
||||||
quality: 96).URLString
|
quality: 96).URLString
|
||||||
return URL(string: urlString)!
|
return URL(string: urlString)!
|
||||||
|
|
Loading…
Reference in New Issue