diff --git a/PeerTubeConfig.json b/PeerTubeConfig.json index b3941bc..d56cf65 100644 --- a/PeerTubeConfig.json +++ b/PeerTubeConfig.json @@ -1,16 +1,16 @@ { - "name": "PeerTube", + "name": "PeerTube - LSN", "description": "A plugin that adds PeerTube as a source", - "author": "FUTO", - "authorUrl": "https://futo.org", + "author": "Gabriel", + "authorUrl": "https://gabe.rocks", - "sourceUrl": "https://plugins.grayjay.app/PeerTube/PeerTubeConfig.json", - "repositoryUrl": "https://futo.org", + "sourceUrl": "http://10.0.0.2:8000/PeerTubeConfig.json", + "repositoryUrl": "https://code.gabe.rocks/gabriel/peertube-grayjay", "scriptUrl": "./PeerTubeScript.js", - "version": 14, + "version": 20, "iconUrl": "./peertube.png", - "id": "1c291164-294c-4c2d-800d-7bc6d31d0019", + "id": "d770c577-e9ec-4435-a78a-f83fb9064bdf", "scriptSignature": "", "scriptPublicKey": "", @@ -22,6 +22,6 @@ ], "constants": { - "baseUrl": "https://peertube.futo.org" + "baseUrl": "https://peertube.libresolutions.network" } } diff --git a/PeerTubeScript.js b/PeerTubeScript.js index 349befc..c0afa0e 100644 --- a/PeerTubeScript.js +++ b/PeerTubeScript.js @@ -81,7 +81,7 @@ function getVideoPager(path, params, page) { datetime: Math.round((new Date(v.publishedAt)).getTime() / 1000), duration: v.duration, viewCount: v.views, - url: v.url, + url: "https://peertube.libresolutions.network"+ v.url.substring(v.url.search("/videos/")), isLive: v.isLive }); @@ -283,7 +283,7 @@ source.getContentDetails = function (url) { thumbnails: new Thumbnails([new Thumbnail(`${plugin.config.constants.baseUrl}${obj.thumbnailPath}`, 0)]), author: new PlatformAuthorLink(new PlatformID(PLATFORM, obj.channel.name, config.id), obj.channel.displayName, - obj.channel.url, + plugin.config.constants.baseUrl + obj.channel.url.substring(obj.channel.url.search("/videos/watch")), obj.channel.avatar ? `${plugin.config.constants.baseUrl}${obj.channel.avatar.path}` : ""), datetime: Math.round((new Date(obj.publishedAt)).getTime() / 1000), duration: obj.duration, diff --git a/index.html b/index.html new file mode 100644 index 0000000..c945688 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Install diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..efb0b19 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +gonna update later...