Requirements:
- Latest Proton (GE-Proton, Proton-Experimental are both okay)
- git
- wine64
- lutris (winetricks)
- Install system packages for python (3.11.3 is okay):
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| const puppeteer = require('puppeteer'); | |
| const uuid = require('uuid'); | |
| const sleep = ms => new Promise(r => setTimeout(r, ms)); | |
| (async () => { | |
| const browser = await puppeteer.launch({ headless: false }); | |
| const page = await browser.newPage(); | |
| const id = uuid.v4(); |