all repos — FixYouTube-legacy @ 942e0d577869657273327c2480cf05eb5b6758f7

A better way to embed YouTube videos everywhere (inspired by FixTweet).

fxyoutube/constants.py (view raw)

 1MAX_SIZE_MB = 50
 2YT_TTL_MINUTES = 60 * 6
 3DB_URL = "cache.db"
 4
 5UA_REGEX = r"bot|facebook|embed|got|firefox\/92|firefox\/38|curl|wget|go-http|yahoo|generator|whatsapp|preview|link|proxy|vkshare|images|analyzer|index|crawl|spider|python|cfnetwork|node"
 6BASE_URL = "https://www.youtube.com/watch?v="
 7REPO_URL = "https://github.com/BiRabittoh/FixYouTube"
 8TS_FORMAT = "%Y-%m-%d %H:%M:%S"
 9MAX_SIZE_BYTES = MAX_SIZE_MB * 1_000_000
10PROXY_HEADERS = { "Content-Type": "video/mp4" }