mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-27 13:20:29 +08:00
移除自动缩小头像尺寸
This commit is contained in:
parent
72c11d60da
commit
a35d7a5bfc
@ -8,10 +8,6 @@ export function processAvatarUrl(avatarUrl) {
|
|||||||
if (m) {
|
if (m) {
|
||||||
avatarUrl = m[1]
|
avatarUrl = m[1]
|
||||||
}
|
}
|
||||||
// 缩小图片加快传输
|
|
||||||
if (!avatarUrl.endsWith('noface.gif')) {
|
|
||||||
avatarUrl += '@48w_48h'
|
|
||||||
}
|
|
||||||
return avatarUrl
|
return avatarUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,9 +114,6 @@ def process_avatar_url(avatar_url):
|
|||||||
m = re.fullmatch(r'(?:https?:)?(.*)', avatar_url)
|
m = re.fullmatch(r'(?:https?:)?(.*)', avatar_url)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
avatar_url = m[1]
|
avatar_url = m[1]
|
||||||
# 缩小图片加快传输
|
|
||||||
if not avatar_url.endswith('noface.gif'):
|
|
||||||
avatar_url += '@48w_48h'
|
|
||||||
return avatar_url
|
return avatar_url
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user