Add size to SuperStream

This commit is contained in:
Blatzar 2022-09-10 13:57:06 +02:00
parent 778119f1eb
commit 4a264fb17c

View file

@ -624,10 +624,12 @@ class SuperStream : MainAPI() {
callback: (ExtractorLink) -> Unit
): Boolean {
fun LinkList.toExtractorLink(): ExtractorLink? {
if (this.path.isNullOrBlank()) return null
return ExtractorLink(
this@SuperStream.name,
this.filename ?: "",
this.path?.replace("\\/", "") ?: return null,
"${this.filename ?: ""} ${this.size ?: ""}".trim(),
this.path.replace("\\/", ""),
"",
getQualityFromName(this.quality),
)