Skip to content

Rik-F5/xiaoya_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

小雅同步元数据

高速异步爬虫从 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

For Network mount, please add 'nolock' option. See Issue#47

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>       Bitmap of paths or a file containing paths to be selected (See paths.example)
···