mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add Playlist RSS.
This commit is contained in:
parent
6b0cb2352b
commit
aa81677450
2 changed files with 12 additions and 1 deletions
|
@ -14,7 +14,11 @@
|
||||||
></b
|
></b
|
||||||
>
|
>
|
||||||
|
|
||||||
<b class="uk-align-right">{{ playlist.videos }} Videos</b>
|
<div class="uk-align-right">
|
||||||
|
<b>{{ playlist.videos }} Videos</b>
|
||||||
|
<br />
|
||||||
|
<a :href="getRssUrl"><font-awesome-icon icon="rss"></font-awesome-icon></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
@ -47,6 +51,11 @@ export default {
|
||||||
unmounted() {
|
unmounted() {
|
||||||
window.removeEventListener("scroll", this.handleScroll);
|
window.removeEventListener("scroll", this.handleScroll);
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
getRssUrl: _this => {
|
||||||
|
return _this.apiUrl() + "/rss/playlists/" + _this.$route.query.list;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchPlaylist() {
|
async fetchPlaylist() {
|
||||||
return await await this.fetchJson(this.apiUrl() + "/playlists/" + this.$route.query.list);
|
return await await this.fetchJson(this.apiUrl() + "/playlists/" + this.$route.query.list);
|
||||||
|
|
|
@ -8,6 +8,7 @@ import {
|
||||||
faCheck,
|
faCheck,
|
||||||
faHeart,
|
faHeart,
|
||||||
faHeadphones,
|
faHeadphones,
|
||||||
|
faRss,
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons";
|
import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
||||||
|
@ -22,6 +23,7 @@ library.add(
|
||||||
faHeart,
|
faHeart,
|
||||||
faHeadphones,
|
faHeadphones,
|
||||||
faYoutube,
|
faYoutube,
|
||||||
|
faRss,
|
||||||
);
|
);
|
||||||
|
|
||||||
import("uikit/dist/css/uikit-core.css");
|
import("uikit/dist/css/uikit-core.css");
|
||||||
|
|
Loading…
Reference in a new issue