Stream button type switch support (#597)

* Stream button type switch support

* Hide Hls playlist switch
This commit is contained in:
KingLucius 2023-09-10 16:31:01 +03:00 committed by GitHub
parent 0afbc90cd2
commit f6b0ea8dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -67,9 +67,8 @@ class LinkGenerator(
link.name ?: link.url,
unshortenLinkSafe(link.url), // unshorten because it might be a raw link
referer ?: "",
Qualities.Unknown.value, isM3u8 ?: normalSafeApiCall {
URI(link.url).path?.substringAfterLast(".")?.contains("m3u")
} ?: false
Qualities.Unknown.value,
type = INFER_TYPE,
) to null
)
}

View file

@ -49,7 +49,8 @@
android:layout_marginTop="10dp"
android:text="@string/hls_playlist"
android:textColor="?attr/textColor"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
</LinearLayout>