mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
stremiox: fix source name form rd
This commit is contained in:
parent
f88b511d0e
commit
8dd8440ae9
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -5,7 +5,12 @@ fun String.fixSourceUrl() : String {
|
|||
}
|
||||
|
||||
fun fixRDSourceName(name: String?, title: String?) : String {
|
||||
return if(name?.contains("[RD+]") == true) "[RD+] $title" else name ?: title ?: ""
|
||||
return when {
|
||||
name?.contains("[RD+]", true) == true -> "[RD+] $title"
|
||||
name?.contains("[RD download]", true) == true -> "[RD] $title"
|
||||
!name.isNullOrEmpty() && !title.isNullOrEmpty() -> "$name $title"
|
||||
else -> title ?: name ?: ""
|
||||
}
|
||||
}
|
||||
|
||||
fun getEpisodeSlug(
|
||||
|
|
Loading…
Reference in a new issue