mirror of
				https://github.com/d-fi/d-fi-core.git
				synced 2025-10-31 11:24:05 +01:00 
			
		
		
		
	fix youtube
This commit is contained in:
		
							parent
							
								
									d18996ca2b
								
							
						
					
					
						commit
						4ce3f285f5
					
				| @ -124,6 +124,18 @@ test('PARSE TIDAL ARTIST', async (t) => { | ||||
|   t.true(response.tracks.length > 5); | ||||
| }); | ||||
| 
 | ||||
| if (!process.env.CI) { | ||||
|   test('PARSE YOUTUBE TRACK', async (t) => { | ||||
|     const url = 'https://www.youtube.com/watch?v=4NRXx6U8ABQ'; | ||||
|     const response = await parseInfo(url); | ||||
| 
 | ||||
|     t.deepEqual(response.info, {id: '4NRXx6U8ABQ', type: 'youtube-track'}); | ||||
|     t.deepEqual(response.linkinfo, {}); | ||||
|     t.is(response.linktype, 'track'); | ||||
|     t.is(response.tracks.length, 1); | ||||
|   }); | ||||
| } | ||||
| 
 | ||||
| // Fail Tests
 | ||||
| test('SHOULD FAIL STRING', async (t) => { | ||||
|   const str = 'hello there'; | ||||
|  | ||||
| @ -10,7 +10,7 @@ import { | ||||
| import spotifyUri from 'spotify-uri'; | ||||
| import * as spotify from './spotify'; | ||||
| import * as tidal from './tidal'; | ||||
| import * as youtube from './tidal'; | ||||
| import * as youtube from './youtube'; | ||||
| import PQueue from 'p-queue'; | ||||
| import type {albumType, artistInfoType, playlistInfo, trackType} from '../types'; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user