From 375a230ec32acf67ffded8b85922f9a1c3893228 Mon Sep 17 00:00:00 2001 From: chen3861229 Date: Tue, 1 Apr 2025 23:22:41 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(embyLaunchPotplayer):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=8A=E4=B8=AA=E7=89=88=E6=9C=AC=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E7=9A=84=20jellyfin=20=E4=B8=8B=E7=9A=84=E8=AF=AF=E6=94=B9,?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- embyWebAddExternalUrl/README.md | 3 +++ embyWebAddExternalUrl/embyLaunchPotplayer.js | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/embyWebAddExternalUrl/README.md b/embyWebAddExternalUrl/README.md index 70194dd..7c1c341 100644 --- a/embyWebAddExternalUrl/README.md +++ b/embyWebAddExternalUrl/README.md @@ -71,6 +71,9 @@ Emby Web, iconOnly: true ### CHANGELOG +#### 1.1.21 +1. fix(embyLaunchPotplayer): 修复上个版本引入的 jellyfin 下的误改,并修复图标 + #### 1.1.20 1. fix(embyLaunchPotplayer): 适配 4.9.0.40 2. refactor(embyLaunchPotplayer): 抽取 selectors diff --git a/embyWebAddExternalUrl/embyLaunchPotplayer.js b/embyWebAddExternalUrl/embyLaunchPotplayer.js index ac58556..dfae54d 100644 --- a/embyWebAddExternalUrl/embyLaunchPotplayer.js +++ b/embyWebAddExternalUrl/embyLaunchPotplayer.js @@ -4,7 +4,7 @@ // @name:zh embyLaunchPotplayer // @name:zh-CN embyLaunchPotplayer // @namespace http://tampermonkey.net/ -// @version 1.1.20 +// @version 1.1.21 // @description emby/jellfin launch extetnal player // @description:zh-cn emby/jellfin 调用外部播放器 // @description:en emby/jellfin to external player @@ -82,12 +82,14 @@ , onClick: embySenPlayer, osCheck: [OS.isIOS], }, { id: "embyCopyUrl", title: "复制串流地址", iconId: "icon-Copy", onClick: embyCopyUrl, }, ]; + // Jellyfin Icons: https://marella.github.io/material-icons/demo + // Emby Icons: https://fonts.google.com/icons const customBtns = [ { id: "hideByOS", title: "异构播放器", iconName: "more", onClick: hideByOSHandler, }, { id: "iconOnly", title: "显示模式", iconName: "open_in_full", onClick: iconOnlyHandler, }, - { id: "notCurrentPot", title: "多开Potplayer", iconName: "select_window", onClick: notCurrentPotHandler, }, + { id: "notCurrentPot", title: "多开Potplayer", iconName: "window", onClick: notCurrentPotHandler, }, { id: "strmDirect", title: "STRM直通", desc: "AList注意关sign,否则不要开启此选项,任然由服务端处理sign" - , iconName: "media_link", onClick: strmDirectHandler, + , iconName: "link", onClick: strmDirectHandler, }, ]; if (!iconConfig.removeCustomBtns) { @@ -118,6 +120,7 @@ } let mainDetailButtons = document.querySelector(selectors.embyMainDetailButtons); function generateButtonHTML({ id, title, desc, iconId, iconName }) { + // jellyfin icon class: material-icons return `