Files
archived-MoviePilot-Plugins/docs/HomePage.md
thsrite 29471ee394 revert
2024-06-24 15:06:28 +08:00

51 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HomePage自定义API
![img.png](../img/HomePage/img.png)
HomePage services.yaml配置
```angular2html
- Media:
- MoviePilot:
icon: /icons/icon/MoviePilot.png
href: http://MoviePilot_IP:NGINX_PORT
ping: http://MoviePilot_IP:NGINX_PORT
# server: unraid
# container: MoviePilot
showStats: true
widget:
type: customapi
url: http://MoviePilot_IP:NGINX_PORT/api/v1/plugin/HomePage/statistic?apikey=api_token
method: GET
mappings:
- field: movie_subscribes
label: 电影订阅
- field: tv_subscribes
label: 电视剧订阅
- field: movie_count
label: 电影数量
- field: tv_count
label: 电视剧数量
# - field: episode_count
# label: 电影剧集数量
# - field: user_count
# label: 用户数量
# - field: total_storage
# label: 总空间
# - field: free_storage
# label: 剩余空间
# - field: now_tasks
```
### 自定义API Response字段
- movie_subscribes 电影订阅
- tv_subscribes 电视剧订阅
- movie_count 电影数量
- tv_count 电视剧数量
- episode_count 电影剧集数量
- user_count 用户数量
- total_storage 总空间
- used_storage 已用空间
- free_storage 剩余空间
### HomePage自定义API文档
https://gethomepage.dev/latest/widgets/services/customapi/#custom-request-body