From 93377ffd47901a4d84f515a87cecb7afa03df97b Mon Sep 17 00:00:00 2001 From: Arjix <53124886+ArjixWasTaken@users.noreply.github.com> Date: Fri, 20 Aug 2021 22:51:04 +0300 Subject: [PATCH] uhh x3 --- .../lagradost/cloudstream3/movieproviders/TrailersToProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/TrailersToProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/TrailersToProvider.kt index 434100c6..9e200102 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/movieproviders/TrailersToProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/movieproviders/TrailersToProvider.kt @@ -229,7 +229,7 @@ class TrailersToProvider : MainAPI() { val titleHeader = main.selectFirst("a") val titleName = titleHeader.text() val href = fixUrl(titleHeader.attr("href")) - val gValues = Regex(""".*?Season ([0-9]+)\s-\s(?:Episode )?([0-9]+)?(?:: )?(.*)""").find(titleName)?.destructured + val gValues = Regex(""".*?(?:(?:Season)|(?:Series) ([0-9]+)\s-\s(?:Episode )?([0-9]+)?(?:: )?(.*)""").find(titleName)?.destructured val season = gValues?.component1()?.toIntOrNull() var episode = gValues?.component2()?.toIntOrNull() if (episode == null) {