mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Make frontend URL in txt playlists overridable
This commit is contained in:
		
							parent
							
								
									c3bc24ea62
								
							
						
					
					
						commit
						e58b4f5409
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										1
									
								
								.env
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								.env
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
VITE_PIPED_API=https://pipedapi.kavin.rocks
 | 
			
		||||
VITE_PIPED_PROXY=https://pipedproxy.kavin.rocks
 | 
			
		||||
VITE_PIPED_INSTANCES=https://piped-instances.kavin.rocks/
 | 
			
		||||
VITE_PIPED_FRONTEND=https://piped.video
 | 
			
		||||
VITE_BASE_URL=/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -158,7 +158,7 @@ export default {
 | 
			
		|||
        downloadPlaylistAsTxt() {
 | 
			
		||||
            var data = "";
 | 
			
		||||
            this.playlist.relatedStreams.forEach(element => {
 | 
			
		||||
                data += "https://piped.video" + element.url + "\n";
 | 
			
		||||
                data += import.meta.env.VITE_PIPED_FRONTEND + element.url + "\n";
 | 
			
		||||
            });
 | 
			
		||||
            this.download(data, this.playlist.name + ".txt", "text/plain");
 | 
			
		||||
        },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue