fix
This commit is contained in:
parent
1cc7566016
commit
b9999a8d60
4 changed files with 28 additions and 2 deletions
|
@ -126,7 +126,7 @@ source.enable = function (conf) {
|
||||||
|
|
||||||
source.getHome = function () {
|
source.getHome = function () {
|
||||||
return getVideoPager('/api/v1/videos', {
|
return getVideoPager('/api/v1/videos', {
|
||||||
sort: "best"
|
sort: "-publishedAt"
|
||||||
}, 0);
|
}, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
BIN
icon.png
Normal file
BIN
icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
27
index.html
27
index.html
|
@ -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.)
|
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:
|
## Changes made:
|
||||||
|
- Changing from trending peertube videos to most recent
|
||||||
- Setting the baseURL to `peertube.libresolutions.network`
|
- Setting the baseURL to `peertube.libresolutions.network`
|
||||||
- To allow remote videos to load, i had to hardcode `getVideoPager` url parameter with:
|
- 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/")),```
|
```url: "https://peertube.libresolutions.network"+ v.url.substring(v.url.search("/videos/")),```
|
||||||
|
|
Loading…
Reference in a new issue