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 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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue