File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
"author" : {
4
4
"name" : " KagChi"
5
5
},
6
- "version" : " 0.1.1 " ,
6
+ "version" : " 0.1.2 " ,
7
7
"license" : " GPL-3.0" ,
8
8
"main" : " dist/index.js" ,
9
9
"module" : " dist/index.mjs" ,
Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ export class REST {
57
57
public loadTracks ( options : { source ?: LavalinkSource ; query : string } | string ) {
58
58
if ( typeof options === 'string' ) {
59
59
return this . get < LoadTrackResponse > (
60
- `loadtracks?identifier=${ encodeURIComponent ( `${ this . resolveIdentifier ( LavalinkSourceEnum . Youtube ) } :${ options } ` ) } `
60
+ `loadtracks?identifier=${
61
+ this . isUrl ( options )
62
+ ? encodeURIComponent ( options )
63
+ : encodeURIComponent ( `${ this . resolveIdentifier ( LavalinkSourceEnum . Youtube ) } :${ options } ` )
64
+ } `
61
65
) ;
62
66
}
63
67
const source = options . source ?? LavalinkSourceEnum . Youtube ;
You can’t perform that action at this time.
0 commit comments