Skip to content

Commit

Permalink
fix: avoid passing client id to the media url
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzertech committed Jan 8, 2020
1 parent 370ddb3 commit b42ddf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getTranscodingForTrack = async (
`https://api-v2.soundcloud.com/tracks`,
{
params: {
ids: [track_id],
ids: track_id,
client_id: config.SOUNDCLOUD_CLIENT_ID,
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const processVideo = (
.inputFPS(30)
.loop()
.withSize('1920x1080')
.input(`${song.media_url}?client_id=${config.SOUNDCLOUD_CLIENT_ID}`)
.input(song.media_url)
.outputOption('-shortest')
.videoCodec('libx264')
.videoBitrate(10000, true)
Expand Down

0 comments on commit b42ddf5

Please sign in to comment.