Coder Social home page Coder Social logo

youngtrashbag / torrent-utils Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 35 KB

Manage your Torrents in your qBittorrent client easily

Home Page: https://codeberg.org/goonli/torrent-utils

Python 100.00%
torrent torrents python qbittorrent qbittorrent-api utility

torrent-utils's Introduction

Torrent Utils

IMPORTANT INFO

NO LONGER DEVELOPED ON GITHUB

You can find the new repository on codeberg.org

Usage

The credentials to your qBittorrent Client will be read from your environment.

  • source .credentials.env

index

create

python -m torrent_utils index create --file=index.json

Creates and file with metadata about your torrents that are available in your qBittorrent client

load

python -m torrent_utils index load --file=index.json

Adds torrents from index.json to your qBittorrent client

magnet

create

python -m torrent_utils magnet create --directory=/media/movies

Will create a file containing the magnet link to the torrent. Also searches for Torrents in subdirectories

If content_path is a directory, magnet will be stored in it

Example: If content_path is /media/movies/american_psycho/ the Filepath will be: /media/movies/american_psycho/magnet

But if content_path is /media/movies/american_psycho.mp4 the Filepath will be: /media/movies/american_psycho.mp4.magnet

load

python -m torrent_utils magnet load --directory=/media/movies

Will search subdirectories for magnet files, loads magnet files in similar way as described in create

check

python -m torrent_utils magnet check --directory=/media/movies --verbose

Checks if immediate Subirectories (/media/movies/*/) if they contain a magnet file. Will print out those directories, which do not contain a magnet file.

Option --verbose or -v print a message for every directory scanned.

subtitle

copy

python -m torrent_utils subtitle copy --directory=/media/movies/eternal_sunshine_of_the_spotless_mind/

Will recursively search subdirectories for subtitle files, and copy them to where the video file is located.

Supported file extensions:

  • .sub
  • .srt
  • .vtt
  • .ass
  • .ssa
  • .idx

torrent-utils's People

Contributors

youngtrashbag avatar

Stargazers

 avatar

Watchers

 avatar

torrent-utils's Issues

Add filter for subtitles

the last alphabetically appearing subtitle will be the last to be copied, thus overwriting the previous subtitle file.
The files should be filtered if they contain e.g. en, eng, english, etc.

But it should be avoided to falsely match french with en.

maybe do something like: f'{movie_file}.{sub_file}.{extension_of_sub_file}
(e.g. american-psycho.mp4 and en.srt would be american-psycho.en.srt )

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.