From 1cc75660165d6cee205fccf88e9d4b16dfce4402 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 2 Nov 2023 12:42:36 -0400 Subject: [PATCH] some updates --- PeerTubeConfig.json | 6 +++--- readme.md | 24 +++++++++++++++++++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/PeerTubeConfig.json b/PeerTubeConfig.json index fc39298..1d82890 100644 --- a/PeerTubeConfig.json +++ b/PeerTubeConfig.json @@ -7,9 +7,9 @@ "sourceUrl": "https://gabe.rocks/grayjay-pt/PeerTubeConfig.json", "repositoryUrl": "https://code.gabe.rocks/gabriel/peertube-grayjay", "scriptUrl": "./PeerTubeScript.js", - "version": 20, + "version": 1, - "iconUrl": "./peertube.png", + "iconUrl": "./icon.png", "id": "d770c577-e9ec-4435-a78a-f83fb9064bdf", "scriptSignature": "", @@ -18,7 +18,7 @@ "allowEval": false, "allowUrls": [ - "everywhere" + "https://peertube.libresolutions.network" ], "constants": { diff --git a/readme.md b/readme.md index efb0b19..b8f0ba9 100644 --- a/readme.md +++ b/readme.md @@ -1 +1,23 @@ -gonna update later... +# Grayjay PeerTube Plugin for Libre Solutions Network + +Hopefully this specific plugin will be unnecessary. +I forked the official [peertube plugin](https://gitlab.futo.org/videostreaming/plugins/peertube) because as it currently exists, it doesn't properly load videos from remote instances. + +My solution isn't very elegant, I'm not familiar with typescript, but this plugin will allow you to browse videos within the network for the [Libre Solutions Network PeerTube](https://peertube.libresolutions.network.) + +## Changes made: +- Setting the baseURL to `peertube.libresolutions.network` +- To allow remote videos to load, i had to hardcode `getVideoPager` url parameter with: +```url: "https://peertube.libresolutions.network"+ v.url.substring(v.url.search("/videos/")),``` + + **Why?** Because when the peertube plugin loads a remote video it throws an error `No source enabled to support url` Meaning that you would need to install the peertube plug-in for *every instance* within your network. + + Thankfully peertube seamlessly handles links to remote videos when you replace it with your instance url. + +## Outstanding issues + +- I would prefer to pull the baseURL parameter properly, but I had trouble making that work and decided to just hardcode it. +- I have no idea how/if this will impact casting, but hope to test that soon. +- I need to properly sign the plugin + +[Plugin Documentation](https://gitlab.futo.org/videostreaming/grayjay/-/blob/master/plugin-development.md) \ No newline at end of file