This commit is contained in:
Gabriel 2023-11-01 21:23:29 -04:00
parent c46006bb65
commit cb57e04370
4 changed files with 12 additions and 10 deletions

View file

@ -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"
}
}

View file

@ -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,

1
index.html Normal file
View file

@ -0,0 +1 @@
<a href="grayjay://plugin/http://10.0.0.2:8000/PeerTubeConfig.json?url=https://peertube.libresolutions.network">Install</a>

1
readme.md Normal file
View file

@ -0,0 +1 @@
gonna update later...