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
> >
<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);

View file

@ -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");