From 0d7b6ac2c5bf9cfb69f885ef8c2037bb1fdb9a86 Mon Sep 17 00:00:00 2001 From: q-- Date: Fri, 25 Oct 2019 16:50:28 +0200 Subject: [PATCH] Fix and improve VideoJS detection Current VideoJS versions always set a lowercase `videojs` variable. Maybe they always have, variable names weren't case sensitive before the transition to using `"js"` in apps.json. Still, preserving the mixed-case name as well just in case Also added a new `script` pattern for detection, and a fresh SVG logo --- src/apps.json | 9 +++++-- src/icons/VideoJS.png | Bin 311 -> 0 bytes src/icons/VideoJS.svg | 54 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 2 deletions(-) delete mode 100644 src/icons/VideoJS.png create mode 100644 src/icons/VideoJS.svg diff --git a/src/apps.json b/src/apps.json index 7097b0faf..6a062c23a 100644 --- a/src/apps.json +++ b/src/apps.json @@ -11163,11 +11163,16 @@ 14 ], "html": "]+class=\"video-js+\">", - "icon": "VideoJS.png", + "icon": "VideoJS.svg", "js": { + "videojs.VERSION": "^(.+)$\\;version:\\1", + "videojs": "", "VideoJS": "" }, - "script": "zencdn\\.net/c/video\\.js", + "script": [ + "zencdn\\.net/c/video\\.js", + "^(?:https?:)?\\/\\/(?:[^\\/]+\\.)*cdnjs\\.cloudflare\\.com\\/ajax\\/libs\\/video\\.js\\/([\\d\\.]+)\\/\\;version:\\1" + ], "website": "http://videojs.com" }, "VigLink": { diff --git a/src/icons/VideoJS.png b/src/icons/VideoJS.png deleted file mode 100644 index 1b8a2938e2c22a3e921ed013ee4c82321b4a4469..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 311 zcmV-70m%M|P)vkWrI2QW#0 z&s9epf0M=V+n(p?bnZP05&e8Z`L2QLVD$&8tk@l^?r=)5vjYg)U;!ixRdqs9*uXzG z(BsNU-Fz$y!>0iRHLeUxPc%Dc1}x3n078B^G36t;5Ol(x88|~kDH+ps*_hG`b5;?@ z^u_WCUp!B*3VS8pG81qCl5D{q$klAH1Y&5nJ3z3_3|K}8_1~0x_e(_Z7be_DxUO^M zg>|y0&xo)CcJe? + + + + + image/svg+xml + + + + + + + + + + + + + + + +