Giter VIP home page Giter VIP logo

alistautostrm's Introduction

AlistAutoStrm

Auto generate .strm file for EMBY or Jellyfin server use Alist API
使用 Alist API自动生成 .strm 文件用于 EMBY 或 Jellyfin 服务器

Usage 使用方法

D:\AlistAutoStrm\bin>ass_windows_amd64.exe --help                 
NAME:
   AlistAutoStrm - Auto generate .strm file for EMBY or Jellyfin server use Alist API

USAGE:
   AlistAutoStrm [global options] command [command options] [arguments...]

VERSION:
   1.1.1

DESCRIPTION:
   Auto generate .strm file for EMBY or Jellyfin server use Alist API

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config FILE, -c FILE  Load configuration from FILE (default: "config.json") [%ALIST_AUTO_STRM_CONFIG%]
   --help, -h              show help
   --version, -v           print the version

D:\AlistAutoStrm\bin>ass_windows_amd64.exe --config config.json

Config file example 配置文件示例

JSON format JSON格式

{
    "endpoint": "https://alist.cn",
    "username": "",
    "password": "",
    "inscure-tls-verify": false,
    "debug": false,
    "timeout": 30,
    "dirs": [
        {
            "remote-dir": "/",
            "local-dir": "path_to_local_directory",
            "disabled":false,
            "force-refresh":false,
            "not-recursive":false,
            "create-sub-directory":false
        }
    ],
    "exts": [
        ".mp4",
        ".mkv",
        ".avi"
    ],
    "create-sub-directory": false,
    "max-connections": 10
}

YAML format YAML格式

endpoint: https://alist.cn
username: ""
password: ""
inscure-tls-verify: false
debug: false
timeout: 30
dirs:
  - remote-dir: /
    local-dir: path_to_local_directory
    disabled: false
    force-refresh: false
    not-recursive: false
    create-sub-directory: false
exts:
  - .mp4
  - .mkv
  - .avi
create-sub-directory: false
max-connections: 10

Tips 提示

create-sub-directory

global create-sub-directory option is high proriority than per dir create-sub-directory option
全局 create-sub-directory 优先级高于各自目录的create-sub-directory设置
for example 举例说明:

  • global create-sub-directory is true, per dir create-sub-directory no matter what is, final result is true;
    当全局 create-sub-directory 设置为 true 时, 各自目录的 create-sub-directory 设置无关紧要, 最终结果为 true;
  • global create-sub-directory is false, per dir create-sub-directory is true, final result is true;
    当全局 create-sub-directory 设置为 false 时, 各自目录的 create-sub-directory 设置为 true 时, 最终结果为 true;

force-refresh

force-refresh option is control whether to refresh the remote directory per request or not, default is false. Attention: set it to true may cause some issue.
force-refresh 选项控制是否每次请求时强制刷新远端目录,默认为 false,注意: 设置为 true 时可能会导致一些问题。

not-recursive

not-recursive option is control whether to generate .strm file recursively or not, default is false.
not-recursive 选项控制是否递归生成 .strm 文件,默认为 false

Author

@imshuai

License

MIT License

Thanks

alist

alistautostrm's People

Contributors

imshuai avatar

Stargazers

 avatar

Watchers

 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.