Skip to content

Commit d734604

Browse files
authored
fix: allow custom source to query
1 parent a8fc3d1 commit d734604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Structures/REST.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class REST {
6262
const { query } = options;
6363
return this.get<LoadTrackResponse>(
6464
Routes.loadTracks(
65-
this.isUrl(options.query) ? encodeURIComponent(query) : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
65+
this.isUrl(options.query) ? encodeURIComponent(query) : query.includes(":") ? query : `${encodeURIComponent(`${this.resolveIdentifier(source)}:${query}`)}`
6666
)
6767
);
6868
}

0 commit comments

Comments
 (0)