Skip to content

Commit

Permalink
[修复]解析视频地址错误指向用户
Browse files Browse the repository at this point in the history
  • Loading branch information
1250422131 committed Jul 19, 2024
1 parent 61fd1a4 commit ed213ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ class ToolFragment : BaseFragment() {
}

// ep过滤
val epRegex = Regex("""^(?<=ep)([0-9]+)""")
val epRegex = Regex("""(?:^|/)ep([0-9]+)""")
// 判断是否有搜到
if (epRegex.containsMatchIn(inputString)) {
loadEpVideoCard(epRegex.find(inputString)?.value!!.toLong())
loadEpVideoCard(epRegex.find(inputString)?.groups?.get(1)?.value!!.toLong())
return
} else if ("""https://b23.tv/([A-z]|\d)*""".toRegex().containsMatchIn(inputString)) {
loadShareData(
Expand Down

0 comments on commit ed213ba

Please sign in to comment.