Giter VIP home page Giter VIP logo

emby-goindex-potplayer's Introduction

感谢各位mjj对本项目的支持与帮助

新版版emby把媒体信息的标签移除了,所以无法使用。请配合4.4.3版本的emby使用

https://github.com/MediaBrowser/Emby.Releases/releases/tag/4.4.3.0

效果

EMBY和Goindex挂载同一个谷歌网盘,目录结构基本一样。 替换emby视频路径,直接调用potplayer播放网盘内的视频。

按按钮调用potplayer,播放网盘直链

image

image

油猴脚本

https://greasyfork.org/zh-CN/scripts/414769-emby-goindex-potplayer

根据emby挂载的本地路径,和goindex挂载的网址路径

image

image

提取不同的地址头部

image

(可选)根据你的网盘程序选择预览页面的后缀。可以避免点击“打开网盘”按钮后,直接下载文件。

image

替换油猴脚本14和16行(以及19-22行,四选一)

image

CSS 屏蔽播放按钮,以及屏蔽设置入口

本项目需要emby账号拥有管理员权限

image

可以通过CSS屏蔽设置入口和播放按钮(默认匹配简体中文界面)

设置入口http://localhost:8096/web/index.html#!/dashboardgeneral.html

image

image

(可选)完美屏蔽播放按钮还需要更改服务器的listview.js文件

路径

X:\EMBY sXerver\system\dashboard-ui\modules\listview\listview.js

/opt/emby-server/system/dashboard-ui/modules/listview/listview.js

查找resume替换为link,共两处

image

直接改服务器程序,不用油猴插件

代码本来就在自己机器上,再用油猴调用js很膈应

直接修改index.html,调用js

路径

X:\EMBY sXerver\system\dashboard-ui\index.html

/opt/emby-server/system/dashboard-ui/index.html

在body里加两行

第一行调用mjj.js

<script type="text/javascript" src="./mjj.js"></script>

再加一行,调用jquery.min.js

<script type='text/javascript' src='https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js'></script>

2021.1.21日修改,chrome浏览器会拦截mjj.js里调用的jquery,改到从index.html里调用 image

把mjj.js文件放入相同目录

image

mjj.js文件需要修改的内容,与油猴脚本基本一致。

image

可能遇到的问题

replace()指令不生效

你的浏览器可能不支持该js指令,具体见

https://caniuse.com/?search=replace%20string

emby-goindex-potplayer's People

Contributors

beiona avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.