Fix mediabox fetch

This commit is contained in:
Ali
2022-09-16 22:58:19 +04:00
parent 7a73e1c8d6
commit 1fa66aad9f
6 changed files with 16 additions and 3 deletions

View File

@@ -226,7 +226,7 @@ private final class FetchManagerCategoryContext {
let storeManager = self.storeManager
let parsedRanges: [(Range<Int64>, MediaBoxFetchPriority)]?
if ranges == RangeSet<Int64>(0 ..< Int64.max) {
if ranges == RangeSet<Int64>(0 ..< Int64.max), !"".isEmpty {
parsedRanges = nil
} else {
var resultRanges: [(Range<Int64>, MediaBoxFetchPriority)] = []
@@ -325,7 +325,7 @@ private final class FetchManagerCategoryContext {
isVideoPreload = true
}
if count == 1 && isCompleteRange {
if count == 1 && isCompleteRange && !"".isEmpty {
parsedRanges = nil
} else {
var resultRanges: [(Range<Int64>, MediaBoxFetchPriority)] = []