File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { config } from "../../src/config" ;
2
2
import assert from "assert" ;
3
- // import { innerTubeVideoDetails } from "../../src/types/innerTubeApi.model";
4
3
import { YouTubeAPI } from "../../src/utils/youtubeApi" ;
5
4
import * as innerTube from "../../src/utils/innerTubeAPI" ;
6
5
import { partialDeepEquals } from "../utils/partialDeepEquals" ;
7
6
import { getVideoDetails } from "../../src/utils/getVideoDetails" ;
8
7
9
- const videoID = "dQw4w9WgXcQ " ;
8
+ const videoID = "BaW_jenozKc " ;
10
9
const expectedInnerTube = { // partial type of innerTubeVideoDetails
11
10
videoId : videoID ,
12
- title : "Rick Astley - Never Gonna Give You Up (Official Music Video) " ,
13
- lengthSeconds : "212 " ,
14
- channelId : "UCuAXFkgsw1L7xaCfnd5JJOw " ,
11
+ title : "youtube-dl test video \"'/\\ä↭𝕐 " ,
12
+ lengthSeconds : "10 " ,
13
+ channelId : "UCLqxVugv74EIW3VWh2NOa3Q " ,
15
14
isOwnerViewing : false ,
16
15
isCrawlable : true ,
17
16
allowRatings : true ,
18
- author : "Rick Astley " ,
17
+ author : "Philipp Hagemeister " ,
19
18
isPrivate : false ,
20
19
isUnpluggedCorpus : false ,
21
20
isLiveContent : false
22
21
} ;
23
- const currentViews = 1284257550 ;
22
+ const currentViews = 49816 ;
24
23
25
24
describe ( "innertube API test" , function ( ) {
26
25
it ( "should be able to get innerTube details" , async ( ) => {
You can’t perform that action at this time.
0 commit comments