Skip to content

This repository contains the backend of the CineHome service. It is used together with the CinePro backend to download movies and tv episodes to a pre-defined folder on a running system (like a NAS)

Notifications You must be signed in to change notification settings

cinepro-org/CineHome-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cine Home Backend server

Description

This repository contains the logic for the Backend of the CineHome service. It is used together with the CinePro backend to download movies and tv episodes. It is ment to be run on a home server. You can send a get request with the specified Movie / episode, it will get links for downloads from the CinePro Backend server and download them into a specified directory.

Usage

Routes

GET /download?type=&id=&e=&s=

This route will download the specified media to the defined folder.

props
  • type: "movie" or "tv"
  • id: the tmdb id of the movie or tv show you want to download
  • s: Only for tv: The season of the episode you want to download
  • e: Only for tv: The number of the episode you want to download
  • filename: the name of the file it should get saved as
    • is optional, will resort to filename of the link it uses if no name is provided

.env variables

  • CINEPROBACKENDURL: The Url on which the CinePro backend server is running.
    • Default: none -> mandatory
  • PORT: The Port the server should get hosted on.
    • Default: 500
  • DOWNLOADFOLDER: The folder where to file should get downloaded to.
    • Default: cineHome/downloads
    • important: Does not work with Docker

Installation

Requirements

  • Node.js
  • streamlink (for downloading and converting m3u8 to mp4)

Steps

  1. Clone the repository
  2. Install the dependencies with npm install
  3. Create a .env file in the root directory and define the variables mentioned above
  4. Start the server with npm start
  5. The sever should now be running on http://localhost:5000 or whatever Port you defined in the .env file

License

You can use this project for personal and non-commercial use ONLY! You are not allowed to sell this project or any part of it and/or add ANY KIND of tracking or advertisement to it.

Notice

This project is for educational purposes only. We do not host any kind of content. We provide only the links to already available content on the internet. We do not host, upload any videos, films or media files. We are not responsible for the accuracy, compliance, copyright, legality, decency, or any other aspect of the content of other linked sites. If you have any legal issues please contact the appropriate media file owners or host sites. And fun fact: If you are law enforcement, this project might acctually help you take sites down, since you can easily check where the media is hosted on. (pls dont)

About

This repository contains the backend of the CineHome service. It is used together with the CinePro backend to download movies and tv episodes to a pre-defined folder on a running system (like a NAS)

Resources

Stars

Watchers

Forks

Releases

No releases published