fixed weibo m.weibo.cn/status/<id> unavailable

This commit is contained in:
A.C.Sukazyo Eyre 2024-03-07 18:50:21 +08:00
parent 0310914632
commit a07c0b1b18
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s
VERSION = 1.3.2
VERSION = 1.3.3
USE_DELTA = false
VERSION_DELTA =

View File

@ -23,7 +23,7 @@ package object weibo {
// s"https://$cdn.singimg.cn/$mode/$pid.jpg"
// }
private val REGEX_WEIBO_STATUS_URL = "(?:https?://)?((?:www\\.|m.)?weibo\\.(?:com|cn))/(\\d+)/([0-9a-zA-Z]+)/?(?:\\?(\\S+))?"r
private val REGEX_WEIBO_STATUS_URL = "(?:https?://)?((?:www\\.|m\\.)?weibo\\.(?:com|cn))/(?:(\\d+)|status)/([0-9a-zA-Z]+)/?(?:\\?(\\S+))?"r
def parseWeiboStatusUrl (url: String): Option[StatusUrlInfo] =
url match