chore: Update User-Agents (#1058)

YouTube.js has been using the same user agents for 3 years.
Maybe YouTube doesn't care that much about the User-Agent, but keeping
them updated is good anyways.
This commit is contained in:
Fijxu
2025-10-12 07:33:19 -03:00
committed by GitHub
parent 977b13cc23
commit 81592ca9e2
2 changed files with 53 additions and 53 deletions

View File

@@ -5,7 +5,7 @@ import { writeFile } from 'fs/promises';
const __dirname = dirname(fileURLToPath(import.meta.url));
const buf = await (await fetch('https://github.com/intoli/user-agents/blob/master/src/user-agents.json.gz?raw=true')).arrayBuffer();
const buf = await (await fetch('https://github.com/intoli/user-agents/raw/refs/heads/main/src/user-agents.json.gz?raw=true')).arrayBuffer();
const bytes = new Uint8Array(buf);
// Only get desktop and mobile agents