Compare commits

...

2 Commits

Author SHA1 Message Date
lamp 40bda207e1 skip streaming manifests 2023-08-01 00:35:51 -07:00
lamp ea8bf8fa1e porkbun dns 2023-07-31 21:34:04 -07:00
5 changed files with 13 additions and 4 deletions
+1
View File
@@ -1,3 +1,4 @@
.vscode
__pycache__
test.mp4
secrets.env
+6 -1
View File
@@ -15,7 +15,12 @@
:80 {
#nl.u2b.cx u2b.cx {
log
tls {
dns porkbun {
api_key {env.PORKBUN_API_KEY}
api_secret_key {env.PORKBUN_API_SECRET}
}
}
handle_path /proxy/* {
@gv path_regexp gvurl ^\/([a-z0-9-]+\.googlevideo\.com)
handle @gv {
+3 -1
View File
@@ -1,4 +1,6 @@
FROM caddy:2.6-builder AS builder
RUN xcaddy build --with github.com/caddyserver/transform-encoder
RUN xcaddy build \
--with github.com/caddyserver/transform-encoder \
--with github.com/caddy-dns/porkbun
FROM caddy:2.6
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
+1
View File
@@ -22,6 +22,7 @@ services:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
env_file: secrets.env
volumes:
caddy_data:
caddy_config:
+1 -1
View File
@@ -70,7 +70,7 @@ class Handler(BaseHTTPRequestHandler):
'event': Event(),
'expire': datetime.now() + timedelta(hours=5)
}
with YoutubeDL() as ydl:
with YoutubeDL({'extractor_args': {'youtube': {'skip': ['dash', 'hls']}}}) as ydl:
info = ydl.extract_info(query, download=False)
selection = info