Sign inSign up

dobirdcker/p115strmsub

By dobirdcker

•Updated 12 months ago

基于p115filedb,生成strm文件,且下载字幕文件。

Image
0

1.1K

dobirdcker/p115strmsub repository overview

compose.yaml

services:
  p115strmsub:
    image: dobirdcker/p115strmsub:latest
    container_name: p115strmsub
    network_mode: host
    user: "1000:1000"
    environment:
      TZ: "Asia/Shanghai"
      # 控制运行哪部分
      RUN_P115FILEDB: "true"
      RUN_GENERATE_STRM: "true"

      # p115filedb 参数
      P115_COOKIES_PATH: "/data/115-cookies.txt"
      P115_DB_PATH: "/data/test.db"
      P115_INTERVAL: "30"
      P115_MAX_WORKERS: "1"
      P115_PAGE_SIZE: "1000"
      P115_CHECK_LOGIN: "true"
      P115_TARGET_DIR: "/test"

      # generate_strm.py 参数
      OUTPUT_DIR: "/data/strm"
      LOG_FILE: "/data/logs/test.log"
      GENERATED_DB_PATH: "/data/generate_test.db"
      PLAY_URL_TEMPLATE: 'http://IP/{sha1}/{name}' # 请根据p115open302或者其他302的文档说明填写
      VIDEO_EXTS: ".mp4,.mkv,.avi,.wmv,.m2ts,.ts,.rmvb,.flv,.mov,.vob" # 媒体文件后缀
      SUBTITLE_EXTS: ".ass,.srt,.ssa,.sub,.smi,.idx,.sup"  # 字幕后缀
      BATCH_SIZE: "1000"
      NUM_WORKERS: "8"
      QUEUE_SIZE: "5000"
      LOG_LEVEL: "debug"

      # 🔧 新增:字幕下载相关参数
      DOWNLOAD_SUBTITLE: "true"        # 启用字幕下载
      DOWNLOAD_TIMEOUT: "30"           # 下载超时时间
      DOWNLOAD_RETRIES: "5"            # 下载重试次数

    volumes:
      - ./115-cookies_fe.txt:/data/115-cookies_fe.txt:ro
      - ./:/data
      - ./logs:/data/logs
      - /home/albert/strm:/data/strm
      - /home/albert/media:/data/media
    stdin_open: true
    tty: true

Tag summary

Content type

Image

Digest

sha256:bedfe1da6…

Size

66 MB

Last updated

12 months ago

docker pull dobirdcker/p115strmsub