Web-Multi-Media / HttpStreamingServer

A Django + React webapp to watch your videos
MIT License
5 stars 3 forks source link

Download video from user request #9

Open xavierfav opened 5 years ago

xavierfav commented 5 years ago

Currently the application allows to browse and stream video from the serveur.

It would be nice if a user could: 1. browse a collection of movies from a larger base (e.g. IMDB) 2. request the download of a movie with a torrent


  1. For that we can maybe use one of the api listed in this stackoverflow thread

  2. For that we will need an api for

    • seacrhing torrents
    • downloading them

@DerouineauNicolas any recommendation or thoughts? There are several things to do here, maybe we could split it in 2 or 3 issues.

DerouineauNicolas commented 5 years ago

Good Idea !

For the collection of large movies, do you suggest to download all the movies returned by the API ? It's going to get huge.

The second step is to get the torrent file or the magnet link. This library (https://github.com/rachmadaniHaryono/we-get) could do the job.

Finally we need to do the download. I see there is a C++ library called libtorrent (https://github.com/arvidn/libtorrent) with python binding (https://www.libtorrent.org/python_binding.html). There is a docker image (https://hub.docker.com/r/alfpark/libtorrent) but we'll need intercontainer communication (celery or REST) if we want to use it out of the box. Otherwise we can handle the compiling in the backend docker image.