Skip to content

Commit

Permalink
Remove throttleRate flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezek123 committed Nov 14, 2024
1 parent 637b877 commit 27d3099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/services/syncProcessing/PriorityQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class PriorityJobQueue<
})
)

this.logger.info('Done recalculating priorities')
this.logger.verbose('Done recalculating priorities')
})
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/services/youtube/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ class YoutubeClient implements IYoutubeApi {
async downloadVideo(videoUrl: string, outPath: string): ReturnType<typeof ytdl> {
// Those flags are not currently recognized by `youtube-dl-exec`, but they are still
// supported by yt-dlp (see: https://github.com/yt-dlp/yt-dlp)
const unrecognizedFlags = {
throttledRate: '500K'
}
const response = await ytdl(videoUrl, {
noWarnings: true,
printJson: true,
Expand All @@ -411,10 +408,9 @@ class YoutubeClient implements IYoutubeApi {
// forceIpv6: true,
limitRate: '4M',
bufferSize: '64K',
retries: 2,
retries: 0,
proxy: this.config.proxy?.url,
// noWaitForVideo: true, // our version of youtube-dl-exec is not aware of this flag
...unrecognizedFlags
})
return response
}
Expand Down

0 comments on commit 27d3099

Please sign in to comment.