mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-06-03 15:10:19 +00:00
fix #653
This commit is contained in:
@@ -38,7 +38,7 @@ class PersonMeta(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "actor.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.1"
|
||||
plugin_version = "2.2"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -998,7 +998,8 @@ class PersonMeta(_PluginBase):
|
||||
'Referer': "https://movie.douban.com/"
|
||||
}, ua=settings.USER_AGENT).get_res(url=imageurl, raise_exception=True)
|
||||
else:
|
||||
r = RequestUtils().get_res(url=imageurl, raise_exception=True)
|
||||
r = RequestUtils(proxies=settings.PROXY,
|
||||
ua=settings.USER_AGENT).get_res(url=imageurl, raise_exception=True)
|
||||
if r:
|
||||
return base64.b64encode(r.content).decode()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user