Giter VIP home page Giter VIP logo

alist-tvbox's Introduction

alist-tvbox

AList proxy server for TvBox, support playlist.

Configure

Set app.sites in the file src/main/resources/application.yaml

Build

mvn clean package

Run

java -jar target/alist-tvbox-1.0.jar --server.port=5678

Deploy

scp target/alist-tvbox-1.0.jar user@your-server:~/atv.jar
scp config/install-service.sh user@your-server:~
# login to your server
./install-service.sh

Docker

./build.sh
docker run -d -p 5678:8080 -e ALIST_URL=http://IP:5244 --restart=always --name=alist-tvbox alist-tvbox

Or run container from Docker hub.

docker run -d -p 5678:8080 --restart=always --name=alist-tvbox haroldli/alist-tvbox

TvBox Config

{
  "sites": [
    {"key":"Alist","name":"Alist┃转发","type":1,"api":"http://ip:5678/vod","searchable":1,"quickSearch":1,"filterable":1}
  ],
  "rules": [
    {"host":"pdsapi.aliyundrive.com","rule":["/redirect"]},
    {"host":"*","rule":["http((?!http).){12,}?\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|ape|flac|wav|wma|m4a)\\?.*"]},
    {"host":"*","rule":["http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|ape|flac|wav|wma|m4a)"]}
  ]
}

Or use this config url http://ip:5678/sub/1.

Change the backend config url in application.yaml

app:
  configUrl: https://hutool.ml/tang

Index And Search

POST http://localhost:5678/index
Content-Type: application/json

{
  "site": "小雅",
  "indexName": "index.xiaoya",
  "excludeExternal": false,
  "paths": [
    "/电视剧",
    "/动漫",
    "/综艺",
    "/纪录片",
    "/电影",
    "/音乐"
  ],
  "stopWords": [
  ],
  "excludes": [
  ],
  "maxDepth": 10
}

application.yaml

app:
  sites:
    - name: 小雅
      url: http://alist.xiaoya.pro
      searchable: true
      indexFile: /the/path/to/index.xiaoya.txt
    - name: Har01d
      url: http://alist.har01d.cn
      searchable: true
      indexFile: http://d.har01d.cn/index.full.zip

alist-tvbox's People

Contributors

power721 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.