diff --git a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/service/IlHost.kt b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/service/IlHost.kt index d2b0ab610..795b7fbb3 100644 --- a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/service/IlHost.kt +++ b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/service/IlHost.kt @@ -39,7 +39,7 @@ enum class IlHost(val baseHostUrl: String) { * @return The matching [IlHost] or `null` if none was found. */ fun parse(url: String): IlHost? { - return entries.find { url.contains(it.baseHostUrl) } + return entries.find { url.startsWith(it.baseHostUrl) } } } }