Giter Club home page Giter Club logo

bgmtv-importer's Introduction

Bgmtv-importer

Test FOSSA Status

一个 Bangumi.tv 条目观看进度导入器。

目前 Bangumi.tv 正在建设新 API,在新 API 完成之前该脚本只会发布测试版本(因为新旧 API,脚本都有使用以及 CLI 可能会在新 API 完成后重写)

使用

$ npx bgmtv-importer -h

导入

$ npx bgmtv-importer import -h

从 json 文件导入观看进度。

文件结构:

[   
    {
        "id": "int  条目 id",
        "status": "string  可选  观看状态 请参考 Bangumi.tv 官方 API 文档,默认为 'wish'",
        "watchedEps": "int[]  可选  观看过的集数",
        "watchedVols": "int  可选   观看到的卷数"
    }, 

]

脚本会合并重复的数据,合并的规则为:

属性 合并规则
status 按优先级: dropped > collect > on_hold > do > wish
watchedEps 取重复项中所有出现过的集数
watchedVols 取重复项中的最大值

从站点生成 json 文件

重新导入

$ npx bgmtv-importer reimport -h

在导入期间发生错误时,脚本会在当前目录生成包含当前导入进度及条目观看进度数据的 json 文件。
你可以通过它来继续导入。

文件结构:

{
    "index": "int  发生错误时正在导入的条目的索引",
    "progressData": "同'导入'"
}

License

FOSSA Status

bgmtv-importer's People

Contributors

1574242600 avatar fossabot 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.