Add Playlist RSS.

This commit is contained in:
FireMasterK 2021-07-05 00:27:57 +05:30
parent 6b0cb2352b
commit aa81677450
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
2 changed files with 12 additions and 1 deletions

View file

@ -14,7 +14,11 @@
></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 />
@ -47,6 +51,11 @@ export default {
unmounted() {
window.removeEventListener("scroll", this.handleScroll);
},
computed: {
getRssUrl: _this => {
return _this.apiUrl() + "/rss/playlists/" + _this.$route.query.list;
},
},
methods: {
async fetchPlaylist() {
return await await this.fetchJson(this.apiUrl() + "/playlists/" + this.$route.query.list);

View file

@ -8,6 +8,7 @@ import {
faCheck,
faHeart,
faHeadphones,
faRss,
} from "@fortawesome/free-solid-svg-icons";
import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
@ -22,6 +23,7 @@ library.add(
faHeart,
faHeadphones,
faYoutube,
faRss,
);
import("uikit/dist/css/uikit-core.css");