mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-12 21:30:27 +05:30
Replace piped.kavin.rocks with piped.video.
This commit is contained in:
parent
e2bcb8aecc
commit
599540f5a0
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -22,7 +22,7 @@ body:
|
||||
label: Official Instance
|
||||
description: Can the bug be reproduced on the official instance?
|
||||
options:
|
||||
- label: The bug is reproducable on the [official hosted instance](http://piped.kavin.rocks/) or is API related.
|
||||
- label: The bug is reproducable on the [official hosted instance](http://piped.video/) or is API related.
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
[![AGPL v3](https://shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
[![Matrix](https://img.shields.io/matrix/piped:matrix.org)](https://matrix.to/#/#piped:matrix.org)
|
||||
[![Registered Users](https://pipedapi.kavin.rocks/registered/badge)](https://piped.kavin.rocks/register)
|
||||
[![Registered Users](https://pipedapi.kavin.rocks/registered/badge)](https://piped.video/register)
|
||||
[![IPFS Build](https://github.com/TeamPiped/Piped/actions/workflows/ipfs-build.yml/badge.svg)](https://piped-ipfs.kavin.rocks/)
|
||||
[![GitHub Repo stars](https://img.shields.io/github/stars/TeamPiped/Piped-Frontend?style=social)](https://github.com/TeamPiped/Piped/stargazers)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/TeamPiped/Piped-Frontend)](https://github.com/TeamPiped/Piped/commits)
|
||||
|
@ -4,7 +4,7 @@
|
||||
<LongName>Piped Search</LongName>
|
||||
<Description>Search for videos, channels, and playlists on Piped</Description>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<Image width="48" height="48" type="image/x-icon">https://piped.kavin.rocks/favicon.ico</Image>
|
||||
<Url method="get" rel="results" type="text/html" template="https://piped.kavin.rocks/results?search_query={searchTerms}" />
|
||||
<Image width="48" height="48" type="image/x-icon">https://piped.video/favicon.ico</Image>
|
||||
<Url method="get" rel="results" type="text/html" template="https://piped.video/results?search_query={searchTerms}" />
|
||||
<Url method="get" rel="suggestions" type="application/x-suggestions+json" template="https://pipedapi.kavin.rocks/opensearch/suggestions?query={searchTerms}" />
|
||||
</OpenSearchDescription>
|
||||
|
@ -46,11 +46,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ErrorHandler from "./ErrorHandler.vue";
|
||||
import VideoItem from "./VideoItem.vue";
|
||||
import WatchOnYouTubeButton from "./WatchOnYouTubeButton.vue";
|
||||
import ErrorHandler from "./ErrorHandler.vue";
|
||||
import VideoItem from "./VideoItem.vue";
|
||||
import WatchOnYouTubeButton from "./WatchOnYouTubeButton.vue";
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
ErrorHandler,
|
||||
VideoItem,
|
||||
@ -63,10 +63,10 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
getRssUrl: _this => {
|
||||
getRssUrl: (_this) => {
|
||||
return _this.authApiUrl() + "/rss/playlists/" + _this.$route.query.list;
|
||||
},
|
||||
isPipedPlaylist: _this => {
|
||||
isPipedPlaylist: (_this) => {
|
||||
// regex to determine whether it's a Piped plalylist
|
||||
return /[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/.test(
|
||||
_this.$route.query.list,
|
||||
@ -81,9 +81,9 @@ export default {
|
||||
headers: {
|
||||
Authorization: this.getAuthToken(),
|
||||
},
|
||||
}).then(json => {
|
||||
}).then((json) => {
|
||||
if (json.error) alert(json.error);
|
||||
else if (json.filter(playlist => playlist.id === playlistId).length > 0) this.admin = true;
|
||||
else if (json.filter((playlist) => playlist.id === playlistId).length > 0) this.admin = true;
|
||||
});
|
||||
},
|
||||
activated() {
|
||||
@ -99,7 +99,7 @@ export default {
|
||||
},
|
||||
async getPlaylistData() {
|
||||
this.fetchPlaylist()
|
||||
.then(data => (this.playlist = data))
|
||||
.then((data) => (this.playlist = data))
|
||||
.then(() => this.updateTitle());
|
||||
},
|
||||
async updateTitle() {
|
||||
@ -111,11 +111,11 @@ export default {
|
||||
this.loading = true;
|
||||
this.fetchJson(this.authApiUrl() + "/nextpage/playlists/" + this.$route.query.list, {
|
||||
nextpage: this.playlist.nextpage,
|
||||
}).then(json => {
|
||||
}).then((json) => {
|
||||
this.playlist.relatedStreams.concat(json.relatedStreams);
|
||||
this.playlist.nextpage = json.nextpage;
|
||||
this.loading = false;
|
||||
json.relatedStreams.map(stream => this.playlist.relatedStreams.push(stream));
|
||||
json.relatedStreams.map((stream) => this.playlist.relatedStreams.push(stream));
|
||||
});
|
||||
}
|
||||
},
|
||||
@ -131,7 +131,7 @@ export default {
|
||||
body: JSON.stringify({
|
||||
playlistId: this.$route.query.list,
|
||||
}),
|
||||
}).then(resp => {
|
||||
}).then((resp) => {
|
||||
if (!resp.error) {
|
||||
alert(this.$t("actions.clone_playlist_success"));
|
||||
} else alert(resp.error);
|
||||
@ -139,11 +139,11 @@ export default {
|
||||
},
|
||||
downloadPlaylistAsTxt() {
|
||||
var data = "";
|
||||
this.playlist.relatedStreams.forEach(element => {
|
||||
data += "https://piped.kavin.rocks" + element.url + "\n";
|
||||
this.playlist.relatedStreams.forEach((element) => {
|
||||
data += "https://piped.video" + element.url + "\n";
|
||||
});
|
||||
this.download(data, this.playlist.name + ".txt", "text/plain");
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user