mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix
This commit is contained in:
12
package.json
12
package.json
@@ -609,17 +609,5 @@
|
||||
"v1.1": "支持自动刷新媒体库",
|
||||
"v1.0": "媒体库重复媒体检查,可选择保留规则保留其一"
|
||||
}
|
||||
},
|
||||
"UrlRedirect": {
|
||||
"name": "UrlRedirect",
|
||||
"description": "UrlRedirect。",
|
||||
"labels": "工具",
|
||||
"version": "1.0",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/synology.png",
|
||||
"author": "thsrite",
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v1.0": "UrlRedirect"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,14 +65,14 @@ class UrlRedirect(_PluginBase):
|
||||
logger.info(f"Last link: {response.url}")
|
||||
return schemas.Response(
|
||||
success=True,
|
||||
data=response.url
|
||||
data={'url': response.url}
|
||||
)
|
||||
except requests.RequestException as e:
|
||||
logger.error(f"Request failed: {e}")
|
||||
|
||||
return schemas.Response(
|
||||
success=False,
|
||||
data=str(e)
|
||||
message=str(e)
|
||||
)
|
||||
|
||||
def get_state(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user