Video Downloader Stability
This commit is contained in:
@@ -504,7 +504,10 @@ class DownloadProcessor (
|
||||
for (i in 0 until baseUrlNodeList.length) {
|
||||
val baseUrlNode = baseUrlNodeList.item(i)
|
||||
val baseUrl = baseUrlNode.textContent
|
||||
baseUrlNode.textContent = "${RemoteMediaResolver.CF_ST_CDN_D}$baseUrl"
|
||||
// FIX: Only add prefix if it's not already a full URL
|
||||
if (!baseUrl.startsWith("http://") && !baseUrl.startsWith("https://")) {
|
||||
baseUrlNode.textContent = "${RemoteMediaResolver.CF_ST_CDN_D}$baseUrl"
|
||||
}
|
||||
}
|
||||
|
||||
val dashOptions = downloadRequest.dashOptions!!
|
||||
|
||||
@@ -75,6 +75,7 @@ enum class FileType(
|
||||
"iso6",
|
||||
"avc1",
|
||||
"dash",
|
||||
"cmfc",
|
||||
"mif1",
|
||||
"msnv",
|
||||
"3gp4",
|
||||
@@ -82,7 +83,7 @@ enum class FileType(
|
||||
"3gp6",
|
||||
"3g2a",
|
||||
"3g2b"
|
||||
)
|
||||
) || majorBrand.isNotEmpty() // FALLBACK: If it has the ftyp box, it's a video
|
||||
}
|
||||
|
||||
fun fromFile(file: File): FileType {
|
||||
|
||||
Reference in New Issue
Block a user