Giter Site home page Giter Site logo

nyaaup's Introduction

Auto torrent uploader to Nyaa.si

Nyaaup

Nyaaup is an auto torrent uploader to Nyaa sites, mainly for videos. Works both on Linux and windows.

Requirements

  • Python 3.10, 3.11 or 3.12
  • Poetry 1.2.0 or newer (to install Python package dependencies)

Dependencies

Installation

Run ./install.py or ./install.sh to install the tool and its dependencies

or

  1. git clone https://github.com/varyg1001/nyaaup
  2. cd nyaaup
  3. poetry config virtualenvs.in-project true (optional, but recommended)
  4. poetry install
  5. nyaaup -h

Examples

nyaaup auth -c user:pass
nyaaup up -p 5 -c 1 -a -m https://myanimelist.net/anime/50652/ /path/Boku.to.Roboco.S01E06.1080p.AMZN.WEB-DL.DDP2.0.H.264-VARYG.mkv
nyaaup up -ms -c 1 /path/My.Master.Has.No.Tail.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-VARYG

Usage

                                                   nyaaup v3.3.3

                                          Auto torrent uploader to Nyaa.si

USAGE: nyaaup up [-h] [-ch] [-ms] [-t] [-da] [-ma] [-a] [-A] [-H] [-C] [-s] [-e EDIT_CODE] [-i INFO]
                 [-p PICTURES_NUMBER] [-pe PICTURE_EXTENSION] [-n NOTE] [-M] [-m MYANIMELIST] [--skip-myanimelist]
                 [-c CATEGORY] [-o]


╭─ Positional arguments ─────────────────────────────────────────────────────╮
│   path                                        File or directory to upload. │
╰────────────────────────────────────────────────────────────────────────────╯

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│   -h, --help                                  show this help message and exit                                  │
│   -ch, --category-help                        Print available categories.                                      │
│   -ms, --multi-subs                           Add Multi Subs tag to title.                                     │
│   -t, --telegram                              Send telegram message.                                           │
│   -da, --dual-audios                          Add Dual audios tag to title.                                    │
│   -ma, --multi-audios                         Add Multi audios tag to title.                                   │
│   -a, --auto                                  Detect multi subs, multi audios and dual audios.                 │
│   -A, --anonymous                             Upload torrent as anonymous.                                     │
│   -H, --hidden                                Upload the torrent as hidden.                                    │
│   -C, --complete                              If the torrnet is a complete batch.                              │
│   -s, --skip-upload                           Skip torrent upload.                                             │
│   -e, --edit-code EDIT_CODE                   Use uniq edit code for mediainfo on rentry.co                    │
│   -i, --info INFO                             Set information.                                                 │
│   -p, --pictures-number PICTURES_NUMBER       Number of picture to upload to the torrent (default: 3).         │
│   -pe, --picture-extension PICTURE_EXTENSION  Extension of the snapshot to upload (default: png).              │
│   -n, --note NOTE                             Put a note in to the description.                                │
│   -M, --no-mediainfo                          Do not attach mediainfo to the torrent (provider rentry.co).     │
│   -m, --myanimelist MYANIMELIST               MyAnimeList link.                                                │
│   --skip-myanimelist                          Skip anything that connect to MyAnimeList (in case of downtime). │
│   -c, --category CATEGORY                     Select a category, for help use: --category-help.                │
│   -o, --overwrite                             Recreate the .torrent if it already exists.                      │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

img

nyaaup's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar nxmiru avatar phr33d0m avatar varyg1001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nyaaup's Issues

can't install because of marisa-trie 0.7.8

running the install script or a manual install always fails like so: log.txt

Installing dependencies from lock file

Package operations: 21 installs, 0 updates, 0 removals

  - Installing marisa-trie (0.7.8)

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  running bdist_wheel
  running build
  running build_clib
  building 'libmarisa-trie' library
  creating build
  creating build/temp.linux-x86_64-cpython-312
  creating build/temp.linux-x86_64-cpython-312/marisa-trie
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie
  creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/agent.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/mapper.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/mapper.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/reader.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/reader.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/writer.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/writer.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/trie/louds-trie.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/louds-trie.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/trie/tail.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/tail.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/vector/bit-vector.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector/bit-vector.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/keyset.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/keyset.o
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/trie.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/trie.o
  ar rcs build/temp.linux-x86_64-cpython-312/liblibmarisa-trie.a build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/agent.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/mapper.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/reader.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/writer.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/louds-trie.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/tail.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector/bit-vector.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/keyset.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/trie.o
  running build_ext
  building 'marisa_trie' extension
  creating build/temp.linux-x86_64-cpython-312/src
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/include -I/tmp/tmpdvsnofkv/.venv/include -I/usr/include/python3.12 -c src/agent.cpp -o build/temp.linux-x86_64-cpython-312/src/agent.o
  src/agent.cpp:6:10: fatal error: Python.h: No such file or directory
      6 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  

  at ~/.local/share/pipx/venvs/poetry/lib64/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with marisa-trie (0.7.8) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "marisa-trie (==0.7.8)"'.

and using the command given by the output also spits out an error: build.txt

Collecting marisa-trie==0.7.8
  Downloading marisa-trie-0.7.8.tar.gz (304 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 304.7/304.7 kB 1.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting setuptools (from marisa-trie==0.7.8)
  File was already downloaded /home/any/anime-web-dl/!tools/nyaaup/setuptools-70.0.0-py3-none-any.whl
Building wheels for collected packages: marisa-trie
  Building wheel for marisa-trie (pyproject.toml): started
  Building wheel for marisa-trie (pyproject.toml): finished with status 'error'
Failed to build marisa-trie

  error: subprocess-exited-with-error

  × Building wheel for marisa-trie (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running bdist_wheel
      running build
      running build_clib
      building 'libmarisa-trie' library
      creating build
      creating build/temp.linux-x86_64-cpython-312
      creating build/temp.linux-x86_64-cpython-312/marisa-trie
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie
      creating build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/agent.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/mapper.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/mapper.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/reader.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/reader.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/io/writer.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/writer.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/trie/louds-trie.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/louds-trie.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/trie/tail.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/tail.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/grimoire/vector/bit-vector.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector/bit-vector.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/keyset.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/keyset.o
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/trie.cc -o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/trie.o
      ar rcs build/temp.linux-x86_64-cpython-312/liblibmarisa-trie.a build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/agent.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/mapper.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/reader.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/io/writer.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/louds-trie.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/trie/tail.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/grimoire/vector/bit-vector.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/keyset.o build/temp.linux-x86_64-cpython-312/marisa-trie/lib/marisa/trie.o
      running build_ext
      building 'marisa_trie' extension
      creating build/temp.linux-x86_64-cpython-312/src
      gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Imarisa-trie/include -I/usr/include/python3.12 -c src/agent.cpp -o build/temp.linux-x86_64-cpython-312/src/agent.o
      src/agent.cpp:6:10: fatal error: Python.h: No such file or directory
          6 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for marisa-trie
ERROR: Failed to build one or more wheels

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.