Gabriel 4 months ago
parent 1cc7566016
commit b9999a8d60

@ -126,7 +126,7 @@ source.enable = function (conf) {
source.getHome = function () {
return getVideoPager('/api/v1/videos', {
sort: "best"
sort: "-publishedAt"
}, 0);
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

@ -1 +1,26 @@
<a href="grayjay://plugin/http://10.0.0.2:8000/PeerTubeConfig.json?url=https://peertube.libresolutions.network">Install</a>
<html>
<head>
<title>Libre Solutions Network PT Plugin for Grayjay</title>
<style>
body{
font-size:18px;
display:flex;
flex-direction: column;
align-items: center;
}
button{
padding:10px;
font-size:24px;
border-radius:6px;
}
</style>
</head>
<body>
<h1>Libre Solutions Network</h1>
<h2>Peertube Plugin for Grayjay</h2>
<p>See the <a href="https://code.gabe.rocks/gabriel/peertube-grayjay"></a></p>
<a href="grayjay://plugin/https://gabe.rocks//peertube-grayjay/PeerTubeConfig.json"><button>Install</button></a>
</body>
</html>

@ -6,6 +6,7 @@ I forked the official [peertube plugin](https://gitlab.futo.org/videostreaming/p
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:
- Changing from trending peertube videos to most recent
- 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/")),```

Loading…
Cancel
Save