Code Monkey home page Code Monkey logo

godebridaria's Introduction

godebridaria

Unlocks links through its alldebrid account and sends them to the aria2 server for download

http://serveur:8080/unlock

Drag Racing


  ./godebridaria [OPTIONS]

Application Options:
  /u, /aria2-url:     url aria2 server
  /s, /aria2-secret:  secret aria2 server
  /a, /address:       address of http service debrid >  :8080
  /p, /http           start http server
  /d, /download:      start download on aria2 one [url]
  /b, /debrid:        debrid url [url]


Your config save into data.json

{
	"AskPin": {
		"success": true,
		"pin": "XXXX",
		"expired_in": 600,
		"user_url": "https://alldebrid.com/**********************",
		"base_url": "https://alldebrid.com/pin/",
		"check_url": "https://api.alldebrid.com/******************"
	},
	"Activate": {
		"success": true,
		"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
		"activated": true,
		"expires_in": 585
	},
	"Aria2Config": {
		"Aria2Url": "http://192.168.1.x:6800/jsonrpc",
		"Aria2Secret": "xxxxxxxxxxxx"
	},
	"Address": ":8080",
	"Token": "xxxxxx"
}

Create DAEMON

  • Create file > sudo nano /etc/systemd/system/godebridaria.service
[Unit]
Description=godebrid for aria2
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/home/user/debrid/godebridaria -p
WorkingDirectory=/home/user/debrid

[Install]
WantedBy=multi-user.target

  • Register DAEMON : sudo systemctl enable godebridaria

  • View status DAEMON : sudo systemctl status godebridaria

FOR BUILD

  • RASPBERRY

go env
$env:GOOS = "linux"
$env:GOARCH = "arm"
go build

  • LINUX

go env
$env:GOOS = "linux"
$env:GOARCH = "amd64"
go build

godebridaria's People

Contributors

auriou avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.