本项目是一些 Emby 图标库集合,提供直连代理加速链接(图标也替换成直连代理加速链接了)
本人用的 Emby 服都是直连可用的,但图标无法直连访问,所以借助公益 GitHub 代理加速处理了一下大佬们整理的图标集,现在图标也可以直连访问啦~
Github Proxy:
https://ghfast.top
或https://gh-proxy.com
考虑到图标不常更新,所以 Cron 定了每月更新一次。
https://raw.githubusercontent.com/lige47/QuanX-icon-rule/refs/heads/main/lige-emby-icon.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/lige47/QuanX-icon-rule/lige-emby-icon.json
https://raw.githubusercontent.com/baiitang/Sakura/main/Fileball/Yuan/tubiao.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/baiitang/Sakura/Fileball/Yuan/tubiao.json
https://raw.githubusercontent.com/baiitang/Sakura/main/Fileball/Fang/tubiao.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/baiitang/Sakura/Fileball/Fang/tubiao.json
- 仓库地址:baiitang/Sakura
- 频道链接:https://t.me/PiPi32l/25
https://raw.githubusercontent.com/ginibond/ginibond/main/Icons/emby/tubiao.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/ginibond/ginibond/Icons/emby/tubiao.json
- 仓库地址:ginibond/ginibond
- 频道链接:https://t.me/Gikerwan/11
https://raw.githubusercontent.com/Softlyx/Fileball/main/YUAN/tubiao.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/Softlyx/Fileball/YUAN/tubiao.json
https://raw.githubusercontent.com/Softlyx/Fileball/main/FANG/tubiao.json
直连加速:
https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/Softlyx/Fileball/FANG/tubiao.json
仓库地址:Softlyx/Fileball
教程只是给对原理感兴趣的人看的,不感兴趣的朋友忽略这个章节只看上面的即可~
echo $(curl $ICON_SRC_URL | sed "s|https://raw.githubusercontent.com|https://ghfast.top/https://raw.githubusercontent.com|g") | sed "s|https:\\\/\\\/raw.githubusercontent.com|https:\\\/\\\/ghfast.top\\\/https:\\\/\\\/raw.githubusercontent.com|g" > $ICON_PATH
这样就可以通过 sed 用法把 $ICON_SRC_URL
中的内容都替换成直连代理加速链接,写入到路径 $ICON_PATH
啦~
以白糖方形图标包为例:
URL 为 https://raw.githubusercontent.com/baiitang/Sakura/main/Fileball/Fang/tubiao.json
- 👉 PATH=
baiitang/Sakura/Fileball/Fang/tubiao.json
- 👉 最终结果=https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/baiitang/Sakura/Fileball/Fang/tubiao.json
完整命令如下:
ICON_SRC_URL="https://raw.githubusercontent.com/baiitang/Sakura/main/Fileball/Fang/tubiao.json"
ICON_PATH="baiitang/Sakura/Fileball/Fang/tubiao.json"
mkdir $(dirname $ICON_PATH) -p
echo $(curl $ICON_SRC_URL | sed "s|https://raw.githubusercontent.com|https://ghfast.top/https://raw.githubusercontent.com|g") | sed "s|https:\\\/\\\/raw.githubusercontent.com|https:\\\/\\\/ghfast.top\\\/https:\\\/\\\/raw.githubusercontent.com|g" > $ICON_PATH
FINAL_ICON_PATH="https://ghfast.top/https://raw.githubusercontent.com/RebornQ/Emby-icon-collection/refs/heads/main/$ICON_PATH"
echo $FINAL_ICON_PATH
把以上命令封装成脚本 gh-proxy-url-replacer.sh
后调用:
./gh-proxy-url-replacer.sh https://raw.githubusercontent.com/baiitang/Sakura/main/Fileball/Fang/tubiao.json baiitang/Sakura/Fileball/Fang/tubiao.json
感谢以上图标包作者的付出~