-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user.portrait 出现 ?t= url参数 #78
Labels
bug
Something isn't working
Comments
aiotieba==2.10.2
|
结论: beg_start 长了 @portrait.setter
def portrait(self, new_portrait: str) -> None:
if new_portrait and self.is_portrait(new_portrait):
# beg_start = 33
beg_start = 32
q_index = new_portrait.find('?', beg_start)
and_index = new_portrait.find('&', beg_start)
if q_index != -1:
self._portrait = new_portrait[:q_index]
elif and_index != -1:
self._portrait = new_portrait[:and_index]
else:
self._portrait = new_portrait
else:
self._portrait = '' 不过v2.10.2换了种处理方式,没beg_start什么事了 |
那个?t= url querystring实际上是该用户最后一次更换头像的时间,详见:#64 (comment) |
fixed in https://github.com/Starry-OvO/aiotieba/releases/tag/v2.10.3
比如我 https://tieba.baidu.com/home/main?id=tb.1.c3bc6401.cuFllz86fDotNQKqB4WJ2Q 从13年至今从未更换过头像 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
简要描述这个bug
贴吧接口真是太神奇啦
如何复现
你希望程序作出何种行为
对portrait做处理,清除
?t=
The text was updated successfully, but these errors were encountered: