mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Added libretube backup importing
This commit is contained in:
		
							parent
							
								
									14f43363f6
								
							
						
					
					
						commit
						2fd8c4128d
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -99,6 +99,14 @@ export default {
 | 
				
			||||||
                            this.subscriptions.push(id);
 | 
					                            this.subscriptions.push(id);
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                // Libretube
 | 
				
			||||||
 | 
					                else if (text.indexOf("localSubscriptions") != -1) {
 | 
				
			||||||
 | 
					                    const json = JSON.parse(text);
 | 
				
			||||||
 | 
					                    json.localSubscriptions
 | 
				
			||||||
 | 
					                        .forEach(item => {
 | 
				
			||||||
 | 
					                            this.subscriptions.push(item.channelId);
 | 
				
			||||||
 | 
					                        });
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                // Invidious JSON
 | 
					                // Invidious JSON
 | 
				
			||||||
                else if (text.indexOf("thin_mode") != -1) {
 | 
					                else if (text.indexOf("thin_mode") != -1) {
 | 
				
			||||||
                    const json = JSON.parse(text);
 | 
					                    const json = JSON.parse(text);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue