Success!
This commit is contained in:
parent
c46006bb65
commit
cb57e04370
4 changed files with 12 additions and 10 deletions
|
@ -1,16 +1,16 @@
|
||||||
{
|
{
|
||||||
"name": "PeerTube",
|
"name": "PeerTube - LSN",
|
||||||
"description": "A plugin that adds PeerTube as a source",
|
"description": "A plugin that adds PeerTube as a source",
|
||||||
"author": "FUTO",
|
"author": "Gabriel",
|
||||||
"authorUrl": "https://futo.org",
|
"authorUrl": "https://gabe.rocks",
|
||||||
|
|
||||||
"sourceUrl": "https://plugins.grayjay.app/PeerTube/PeerTubeConfig.json",
|
"sourceUrl": "http://10.0.0.2:8000/PeerTubeConfig.json",
|
||||||
"repositoryUrl": "https://futo.org",
|
"repositoryUrl": "https://code.gabe.rocks/gabriel/peertube-grayjay",
|
||||||
"scriptUrl": "./PeerTubeScript.js",
|
"scriptUrl": "./PeerTubeScript.js",
|
||||||
"version": 14,
|
"version": 20,
|
||||||
|
|
||||||
"iconUrl": "./peertube.png",
|
"iconUrl": "./peertube.png",
|
||||||
"id": "1c291164-294c-4c2d-800d-7bc6d31d0019",
|
"id": "d770c577-e9ec-4435-a78a-f83fb9064bdf",
|
||||||
|
|
||||||
"scriptSignature": "",
|
"scriptSignature": "",
|
||||||
"scriptPublicKey": "",
|
"scriptPublicKey": "",
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"constants": {
|
"constants": {
|
||||||
"baseUrl": "https://peertube.futo.org"
|
"baseUrl": "https://peertube.libresolutions.network"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ function getVideoPager(path, params, page) {
|
||||||
datetime: Math.round((new Date(v.publishedAt)).getTime() / 1000),
|
datetime: Math.round((new Date(v.publishedAt)).getTime() / 1000),
|
||||||
duration: v.duration,
|
duration: v.duration,
|
||||||
viewCount: v.views,
|
viewCount: v.views,
|
||||||
url: v.url,
|
url: "https://peertube.libresolutions.network"+ v.url.substring(v.url.search("/videos/")),
|
||||||
isLive: v.isLive
|
isLive: v.isLive
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ source.getContentDetails = function (url) {
|
||||||
thumbnails: new Thumbnails([new Thumbnail(`${plugin.config.constants.baseUrl}${obj.thumbnailPath}`, 0)]),
|
thumbnails: new Thumbnails([new Thumbnail(`${plugin.config.constants.baseUrl}${obj.thumbnailPath}`, 0)]),
|
||||||
author: new PlatformAuthorLink(new PlatformID(PLATFORM, obj.channel.name, config.id),
|
author: new PlatformAuthorLink(new PlatformID(PLATFORM, obj.channel.name, config.id),
|
||||||
obj.channel.displayName,
|
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}` : ""),
|
obj.channel.avatar ? `${plugin.config.constants.baseUrl}${obj.channel.avatar.path}` : ""),
|
||||||
datetime: Math.round((new Date(obj.publishedAt)).getTime() / 1000),
|
datetime: Math.round((new Date(obj.publishedAt)).getTime() / 1000),
|
||||||
duration: obj.duration,
|
duration: obj.duration,
|
||||||
|
|
1
index.html
Normal file
1
index.html
Normal 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
1
readme.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
gonna update later...
|
Loading…
Reference in a new issue