fixing @ resoling
This commit is contained in:
		
							parent
							
								
									39b5c2640d
								
							
						
					
					
						commit
						306a72dfe1
					
				| 
						 | 
					@ -43,8 +43,8 @@ async function validateChannelInput(input) {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (input.includes('@')) {
 | 
					    if (input.includes('@')) {
 | 
				
			||||||
        const channelId = await (await fetch(`https://yt.jaybee.digital/api/channels?part=channels&handle=${id}`)).json()
 | 
					        const channelId = await (await fetch(`https://pipedapi.kavin.rocks/@/${input.split('@')[1]}`)).json()
 | 
				
			||||||
        return channelId['items'][0]['id']
 | 
					        return channelId['id']
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        return id
 | 
					        return id
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue