GithubHelp home page GithubHelp logo

torrest's Introduction

Torrest

Build Status Codacy Badge

Torrent service with a REST api, specially made for streaming.

⚠️ This project will soon be deprecated in favor of torrest-cpp

Building

  1. Build the cross-compiler and libtorrent-go images, or alternatively, pull the libtorrent-go images from Docker Hub:

    make pull-all

    This will pull all platforms images. For a specific platform, run:

    make pull PLATFORM=linux-x64
  2. Build torrest binaries:

    make all

    Or if you want to build for a specific platform:

    make linux-x64

The list of supported platforms is:

Android Darwin Linux Windows
android-arm
android-arm64
android-x64
android-x86

darwin-x64




linux-arm
linux-armv7
linux-arm64
linux-x64
linux-x86
windows-x64
windows-x86



Swagger

For building swagger docs, you must run go get -u github.com/swaggo/swag/cmd/swag to install all the necessary dependencies, and then run make swag. The last command must be executed before building the binaries, so the documents are included when building.

Swagger-ui will then be available on: http://localhost:8080/swagger/index.html.

torrest's People

Contributors

i96751414 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

todokku

torrest's Issues

Libtorrent - help

@i96751414
Hi, can you somehow help to implement libtorrent for this project, in this project anacrolix torrent is ​​used. But libtorrent is much better and has no bugs. The author tried to implement it, but something is not received, a great help would be desirable if possible, thank you very much, I hope you help

https://github.com/YouROK/TorrServer

Save torrents with no metadata

Currently, all torrents with no metadata are lost if the session is restarted. To mitigate this, we must save these infohashes and delete them after metadata is received.

ConnectionError: HTTPConnectionPool

Hello when I try to enter the torrent section (previously with the torrent added from the file), I get this error, I had tried with 3 torrents and a url

13:49:26.779 T:24084   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.torrest/torrents
13:49:26.780 T:33500   ERROR: [plugin.video.torrest] Caught exception:
                                            Traceback (most recent call last):
                                              File "C:\Kodi\portable_data\addons\plugin.video.torrest\lib\navigation.py", line 393, in run
                                                plugin.run()
                                              File "C:\Kodi\portable_data\addons\script.module.routing\lib\routing.py", line 130, in run
                                                self._dispatch(self.path)
                                              File "C:\Kodi\portable_data\addons\script.module.routing\lib\routing.py", line 141, in _dispatch
                                                view_func(**kwargs)
                                              File "C:\Kodi\portable_data\addons\plugin.video.torrest\lib\navigation.py", line 49, in wrapper
                                                raise e
                                            ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=61235): Max retries exceeded with url: /torrents?status=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x17118A10>: Failed to establish a new connection: [Errno 10061] No se puede establecer una conexi\xf3n ya que el equipo de destino deneg\xf3 expresamente dicha conexi\xf3n',))

Support for aarch64/RockPi 4

I upgraded my Raspberry Pi to RockPi (RK3399 Processor) device. I tried the linux-arm64 binary and looks like working(because creates downloads and torrents folders successfully) but crashes immediately.

When I run torrest. Here is the output.

INFO  main         - main             Loading configs
INFO  main         - main             Starting bittorrent service
INFO  bittorrent   - configure        Applying session settings...
INFO  bittorrent   - configure        UserAgent: torrest/0.0.4 libtorrent/1.2.9.0
INFO  main         - main             Starting torrent daemon on port 8080
Segmentation fault

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.