## Emby 数据迁徙
scp -r emby.tgz [email protected]:/mnt/emby.tgz
scp -r movies [email protected]:/mnt/movies
## 新机器上部署 映射Emby 18096 端口,防止被爬
docker run -d --name=emby -e PUID=1000 -e PGID=1000 -p 18096:8096 \r
-v /mnt/emby:/config -v /mnt/movies:/data/movies \r
--restart unless-stopped emby/embyserver_arm64v8
## 启动 nginx-php-fpm7.4 容器 https 反代 Emby 18096 端口
docker run -d -p 80:80 -p 443:443 --restart=always \r
-v /var/www/cert:/etc/nginx/cert \r
-v /var/www/html:/var/www/html \r
--name nginx-php \r
hongwenjun/nginx-php
## EMBY API
https://m.lyvba.com/emby/web/index.html#!/apikeys
4ef33d761<<实际API>>b63391d - m.lyvba.com
# API 操作参数
http://swagger.emby.media/?url=https://m.lyvba.com/emby/openapi&api_key=4ef33d761<<实际API>>b63391d
# emby info
https://m.lyvba.com/emby/System/Info?api_key=4ef33d761<<实际API>>b63391d
# 建立测试用户
curl -X POST "https://m.lyvba.com/emby/Users/New?api_key=4ef33d761<<实际API>>b63391d" \r
-H "accept: application/xml" -H "Content-Type: application/json" -d "{"Name":"python"}"
https://m.lyvba.com/emby/Users/New?api_key=4ef33d761<<实际API>>b63391d
# python 建立用户 有问题 # data 传替数据还是不会写
import requests
url = 'https://m.lyvba.com/emby/Users/New?api_key=4ef33d761<<实际API>>b63391d'
headers = { "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36",
'accept': 'application/xml', 'content-type': 'application/json'}
data ='{"Name":"test"}' # data 传替数据还是不会写
r = requests.post(url, headers=headers, data =data)
r.text
root@localhost:~# curl -X POST "https://m.lyvba.com/emby/Users/New?api_key=4ef33d761<<实际API>>b63391d" \r
-H "accept: application/xml" -H "Content-Type: application/json" -d "{"Name":"python"}"
捞鱼吧 bbs.lyvba.com 社区论坛上线
捞鱼吧-社区论坛网址 https://bbs.lyvba.com 版块 阅读更多…
0 条评论