Coder Social home page Coder Social logo

ahd-uploader's Introduction

TODO

  • Add qbit

  • Add deluge

  • Add Transmission

  • ADD Template System

  • ADD ability to manually enter parameters for torrents i.e change category. While in batchmode

Install

Clone the repository

git clone https://github.com/excludedBittern8/AHD-Uploader

cd AHD-Uploader

Creating a virtual enviroment

A Virtual environment is recommended. Please Make sure you are on python3 and NOT python2

Installing virtualenv

On macOS and Linux:

python3 -m pip install --user virtualenv

On Windows:

py -m pip install --user virtualenv

Creating the virtualenv

On Linux:

python3 -m venv venv

On Windows:

python3 -m venv venv

alternatively

py -m venv venv

Add required modules

On Linux:

./venv/bin/pip3 install -r requirements.txt

On Windows:

venv\Scripts\pip3.exe install -r requirements.txt

Running python from venv

On Linux

/venv/bin/python3

on Windows

venv\Scripts\python

Parameters

[general]

  • -- media:Can be a path or directory to upload torrents from.

    If a directory batchmode will start. Which will non-recursivly scan the drive, and output the result as menu. Where you can select the file/folder to upload. Non-recursive meaning what you see if you click the directory once. If you want to upload an entire folder as one upload, even if it has subfolders. --batchmode False will work

optional

  • --batchmode:Upload all elements in a directory
  • --config:Pass arguments via a file instead of commandline. example.config is provided
  • --log:This does not take a path. This controls how much information is written to a log file. In order of output valid inputs are DEBUG,INFO,WARN (case-insensitive). logs are written within the ahdupload folder in a subfolder called LOGS If you having issues please run the program with --log debug it will provide information about the process which will tell. Default is WARN

[Client]

  • -- client:name of client

    • rtorrent
    • qbit
    • transmission
    • deluge
    • watchdir:If client is not any of the above values, then it is a "watchdir". To properly use pass the full path to the directory you want to upload to
  • -- clientpass:For clients that need passwords forauth

  • -- clientuser: For clients that need usernames for auth

  • -- clientcat: Naming my differ depending on client, this is the label,category, etc that your torrent will be added as in the client

  • -- clienturl: url for the client

[AHD Auth]

These are all required to upload, autoretrive upload link

  • -- passkey: AHD passkey
  • -- cookies : A cookie file in .txt format, not json
  • -- uid :your user id, used for getting lastest upload

[Torrent]

These parameters control the final upload. Most can be changed after upload.
Other then imdb,screenshots. They are all optional

  • -- numscreens : optional argument to change how many screens shots, default is 9

These upcoming parameters should not be changed at the moment in batchmode As they will not reset after the first upload.

  • --imdb
  • --mediatype
  • --codec
  • --group
  • --type
  • --userrelease
  • --specialedition

[Programs]

These control the paths to the required programs. Only change if you want to use your own binaries On windows please enter the fullpath. You can usually find that by

  1. Enter python
  2. from sys import which
  3. which(program)

There is some combability issues with using path and windows, that causes issues with other commands in the program. So full paths are required on that plaform

  • -- wget : optional argument to change path to wget, programs comes with binary
  • -- dottorrent : optional argument to change path to dottorent, programs comes with binary
  • -- oxipng : optional argument to change path to oxipng, programs comes with binary
  • -- mtn : optional argument to change path to mtn, programs comes with binary
  • -- font : optional argument to change the ttf font file. Program comes with it own. Used for screenshots

Examples

*Anything in brackets is to replace by user value

Rtorrent

ahd_uploader.py --client rtorrent --clienturl <url> --passkey <passkey> --cookie <filepath> --media <path> --uid <uid>

optional
- --clientcat

Watchdir

ahd_uploader.py --client <path> --passkey <passkey> --cookie <file> --media <path> --uid <uid>

Config

  • Please make sure your config is filled with all required info, for example rtorrent needs all the paramters from the rtorrent example. For Parameter Usage Please Go to the Parameter section

  • commandline options will replace any option in the config

ahd_uploader.py --config <configpath>

ahd-uploader's People

Contributors

datawhores avatar

Stargazers

 avatar  avatar

Watchers

 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.