diff --git a/StremioX/src/main/kotlin/com/hexated/StremioX.kt b/StremioX/src/main/kotlin/com/hexated/StremioX.kt index 0e5c64ac..72c329c8 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioX.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioX.kt @@ -347,7 +347,7 @@ open class StremioX : MainAPI() { callback.invoke( ExtractorLink( name ?: "", - title ?: name ?: "", + fixRDSourceName(name, title), url, referer ?: "", getQualityFromName(description), diff --git a/StremioX/src/main/kotlin/com/hexated/Utils.kt b/StremioX/src/main/kotlin/com/hexated/Utils.kt index f0c29fc1..4cefe10e 100644 --- a/StremioX/src/main/kotlin/com/hexated/Utils.kt +++ b/StremioX/src/main/kotlin/com/hexated/Utils.kt @@ -4,6 +4,10 @@ fun String.fixSourceUrl() : String { return this.replace("/manifest.json", "").replace("stremio://", "https://") } +fun fixRDSourceName(name: String?, title: String?) : String { + return if(name?.contains("[RD+]") == true) "[RD+] $title" else name ?: title ?: "" +} + fun getEpisodeSlug( season: Int? = null, episode: Int? = null,