This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getId(url) { | |
| var regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/; | |
| var match = url.match(regExp); | |
| if (match && match[2].length == 11) { | |
| return match[2]; | |
| } else { | |
| return 'error'; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.server | |
| import socketserver | |
| import json | |
| import subprocess | |
| import os | |
| import shutil | |
| import datetime | |
| import sys | |
| import threading |
OlderNewer