[新服务] Docker NAS搭建Mybili自动保存收藏夹视频

date
Nov 3, 2024
slug
newservice-docker-mybilibili-download-favorites
status
Published
summary
新服务-
tags
service
type
Post
URL

Summary

  • 能定时获取你的收藏夹所有视频信息,缓存标题、描述、视频以及封面等重要信息,同时他会保存视频的最高画质提供到本地,你也可以直接通过web页面进行在线的预览,这一系列都完美解决了视频失效的问题

步骤

docker compose

export DOCKER_PROJ=mybili
export DOCKER_PROJ_DOMAIN=$DOCKER_PROJ.xxx.org

# cd to the right path
mkdir data redis

cat > docker-compose.yml <<EOF
version: '3'
services:
  mybili:
    image: ellermister/mybili
    container_name: mybili
    ports:
      - "42500:80"
    volumes:
      - "./data:/app/storage/app/public"
      - "./.env:/app/.env"
      - "./cookie.txt:/app/storage/app/cookie.txt"
  redis:
    image: redis
    container_name: mybili-redis
    volumes:
      - "./redis:/data"
    command: redis-server --save 60 1 --loglevel warning
networks:
  default:
    name: npm_nginx_proxy_manager-network
    external: true
EOF

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

.env

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:1CJOuWliDyx0ZBIZyn0gRKOOOq6+23YG/UHcUP4ffaU=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=

SESSION_DRIVER=redis
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=redis

CACHE_STORE=redis
CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_DB=3
REDIS_PREFIX=

MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

VITE_APP_NAME="${APP_NAME}"

安装Get cookies.txt LOCALLY插件,登陆bilibili并export cookie in “Netscape”格式

notion image
notion image
 

打开网站 http://ip:port/cookie,upload cookie

notion image
 
 

set up npm or 极空间远程访问

notion image
 
notion image
 

验证

Raw


© Ying Bun 2021 - 2024