diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ytdlp_channel_info.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ytdlp_channel_info.ts b/scripts/ytdlp_channel_info.ts index 803336c..b953e4f 100644 --- a/scripts/ytdlp_channel_info.ts +++ b/scripts/ytdlp_channel_info.ts @@ -17,7 +17,7 @@ async function dfile(path: string, url: string) { console.log(`thumbnail download ${path} from ${url}`); const r = await fetch(url) if (!r.body) return console.error("thumbnail download failed"); - await Deno.writeFile(path, r.body) + await Deno.writeFile(path, new Uint8Array(await r.arrayBuffer())) } async function save_infojson(url: string, key: string, data: { [key: string]: unknown }) { |