style: format code with prettier

This commit is contained in:
Enes Yakıştır
2026-09-19 05:20:33 +03:00
parent 3950d91070
commit 8c3d49ec76
3 changed files with 192 additions and 104 deletions
+2 -8
View File
@@ -27,13 +27,7 @@ function resolveYtDlpPath(logger) {
path.join(process.cwd(), 'bin', 'yt-dlp.exe'),
'yt-dlp.exe'
]
: [
'/usr/local/bin/yt-dlp',
'/usr/bin/yt-dlp',
'/bin/yt-dlp',
path.join(process.cwd(), 'bin', 'yt-dlp'),
'yt-dlp'
];
: ['/usr/local/bin/yt-dlp', '/usr/bin/yt-dlp', '/bin/yt-dlp', path.join(process.cwd(), 'bin', 'yt-dlp'), 'yt-dlp'];
for (const candidate of candidates) {
try {
@@ -64,7 +58,7 @@ async function getDefaultChannelId(category) {
return cachedChannels.defaultId || '1146';
}
return new Promise((resolve) => {
return new Promise(resolve => {
const req = http.request(
{
hostname: '127.0.0.1',