mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Stream button type switch support (#597)
* Stream button type switch support * Hide Hls playlist switch
This commit is contained in:
parent
0afbc90cd2
commit
f6b0ea8dfa
2 changed files with 4 additions and 4 deletions
|
@ -67,9 +67,8 @@ class LinkGenerator(
|
||||||
link.name ?: link.url,
|
link.name ?: link.url,
|
||||||
unshortenLinkSafe(link.url), // unshorten because it might be a raw link
|
unshortenLinkSafe(link.url), // unshorten because it might be a raw link
|
||||||
referer ?: "",
|
referer ?: "",
|
||||||
Qualities.Unknown.value, isM3u8 ?: normalSafeApiCall {
|
Qualities.Unknown.value,
|
||||||
URI(link.url).path?.substringAfterLast(".")?.contains("m3u")
|
type = INFER_TYPE,
|
||||||
} ?: false
|
|
||||||
) to null
|
) to null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:text="@string/hls_playlist"
|
android:text="@string/hls_playlist"
|
||||||
android:textColor="?attr/textColor"
|
android:textColor="?attr/textColor"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp"
|
||||||
|
android:visibility="invisible" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue