Giter Site home page Giter Site logo

xiaoya_db's Introduction

小雅同步元数据

高速异步爬虫从 https://emby.xiaoya.pro/ 同步小雅元数据


Prerequisite

Python 3.12+

Linux kernal "Max open files" need to be extended

Save it into /etc/profile.d/ to make it global avaiable after reboot

ulimit -n 4096

Installation

Clone the project

  git clone https://github.com/Rik-F5/xiaoya_db

Go to the project directory

  cd xiaoya_db

Switch to venv

  python3 -m venv .venv
  source .venv/bin/activate

Install modules

  python -m pip install -r requirements.txt

Run Locally with venv activated

python solid.py --media <Xiaoya Folder>

Usage/Examples

Download the metadata without replace the local NFOs

python solid.py --media <folder>

Download the metadata and replace the local NFOs if they are out of date or different

python solid.py --media <folder> --nfo true

Download the metadata and save the file list to a local DB (Python3.12+)

python solid.py --media <folder> --db true

Do not download any files. For testing or benchmark only.

python solid.py

Parameters

  -h, --help           show this help message and exit

  --media <folder>     Path to store downloaded media files [Default: None]

  --count [number]     Max concurrent HTTP Requests [Default: 100]

  --debug, --no-debug  Verbose debug [Default: False]

  --db, --no-db        <Python3.12+ required> Save into DB [Default: False]

  --nfo, --no-nfo      Download NFO [Default: False]

  --url [url]          Download path [Default: None]

  --purge, --no-purge  Purge removed files [Default: True]

  --all, --no-all      Download all folders [Default: False]

  --location <folder>  Path to store database files [Default: None]

  --paths <file>       File containing paths to select (See paths.example)
···

xiaoya_db's People

Contributors

rik-f5 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.