[新服务] 下载器youtube-dl-server docker@moack 还有很多其他的网站支持

date
Mar 2, 2024
slug
newservice-docker-youtube-dl-server
status
Published
summary
新服务-
tags
service
type
Post
URL
 

Summary

支持的网站:https://ytdl-org.github.io/youtube-dl/supportedsites.html

步骤

#1

export DOCKER_PROJ=youtube-dl-server
# export DOCKER_PROJ_DOMAIN=$DOCKER_PROJ.xxx.xxx

cd /data
mkdir $DOCKER_PROJ && cd $DOCKER_PROJ


cat > docker-compose.yml <<EOF
version: '3.8'
services:
  youtube-dl-server:
    image: "kmb32123/youtube-dl-server"
    container_name: youtube-dl-server
    #network_mode: "service:vpn"
    volumes:
      - /drive/qh13_webdav_remote/webdav_remote/__shared/youtube-dl-server:/youtube-dl
    # default port 8080
    restart: always
networks:
  default:
    name: npm_nginx_proxy_manager-network
    external: true
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

#2 add bookmark 、 看youtube时候可点击一键下载




javascript:!function(){fetch("https://youtube-dl-server.xxx.xxx/youtube-dl/q",{body:new URLSearchParams({url:window.location.href,format:"mp4"}),method:"POST"})}();

验证


© Ying Bun 2021 - 2024