mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
uhh x3
This commit is contained in:
parent
3e09d3710c
commit
93377ffd47
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class TrailersToProvider : MainAPI() {
|
||||||
val titleHeader = main.selectFirst("a")
|
val titleHeader = main.selectFirst("a")
|
||||||
val titleName = titleHeader.text()
|
val titleName = titleHeader.text()
|
||||||
val href = fixUrl(titleHeader.attr("href"))
|
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()
|
val season = gValues?.component1()?.toIntOrNull()
|
||||||
var episode = gValues?.component2()?.toIntOrNull()
|
var episode = gValues?.component2()?.toIntOrNull()
|
||||||
if (episode == null) {
|
if (episode == null) {
|
||||||
|
|
Loading…
Reference in a new issue