Skip to content

Ghost6446/StreamingCommunity_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository provide a simple script designed to facilitate the downloading of films and series from a popular streaming community platform. The script allows users to download individual films, entire series, or specific episodes, providing a seamless experience for content consumers.

Join us

You can chat, help improve this repo, or just hang around for some fun in the Git_StreamingCommunity Discord Server

Table of Contents

Requirement

Make sure you have the following prerequisites installed on your system:

Installation

Install the required Python libraries using the following command:

pip install -r requirements.txt

Usage

Run the script with the following command:

On Windows:

python run.py

On Linux/MacOS:

python3 run.py

Configuration

You can change some behaviors by tweaking the configuration file.

Options (DEFAULT)

  • root_path: Path where the script will add movies and TV series folders (see Path Examples).

    • Default Value: media/streamingcommunity
  • not_close: This option, when activated, prevents the script from closing after its initial execution, allowing it to restart automatically after completing the first run.

    • Default Value: false
  • map_episode_name: Mapping to choose the name of all episodes of TV Shows (see Episode Name Usage).

    • Default Value: %(episode_name)
    • Example Value: %(tv_name) [S%(season)] [E%(episode)] %(episode_name)

Options (M3U8)

  • tdqm_workers: The number of workers that will cooperate to download .ts files. A high value may slow down your PC

    • Default Value: 20
  • tqdm_show_progress: Whether to show progress during downloads or not.

    • Default Value: true
  • save_m3u8_content: Enabling this feature saves various playlists and indexes in the temporary folder during the download process, ensuring all necessary files are retained for playback or further processing.

    • Default Value: true
  • fake_proxy: Speed up download for streaming film and series. Dont work for anime, need to set to FALSE

    • Default Value: true
  • create_report: When enabled, this option saves the name of the series or movie being downloaded along with the date and file size in a CSV file, providing a log of downloaded content.

    • Default Value: false

Options (M3U8_OPTIONS)

  • cleanup_tmp_folder: Upon final conversion, this option ensures the removal of all unformatted audio, video tracks, and subtitles from the temporary folder, thereby maintaining cleanliness and efficiency.

    • Default Value: true
  • specific_list_audio: A list of specific audio languages to download.

    • Example Value: ['ara', 'baq', 'cat', 'chi', 'cze', 'dan', 'dut', 'eng', 'fil', 'fin', 'forced-ita', 'fre', 'ger', 'glg', 'gre', 'heb', 'hin', 'hun', 'ind', 'ita', 'jpn', 'kan', 'kor', 'mal', 'may', 'nob', 'nor', 'pol', 'por', 'rum', 'rus', 'spa', 'swe', 'tam', 'tel', 'tha', 'tur', 'ukr', 'vie']

Important

If you're on Windows you'll need to use double black slashes. On Linux/MacOS, one slash is fine.

Path examples:

  • Windows: C:\\MyLibrary\\Folder or \\\\MyServer\\MyLibrary (if you want to use a network folder).
  • Linux/MacOS: Desktop/MyLibrary/Folder

Episode name usage:

You can choose different vars:

  • %(tv_name) : Is the name of TV Show
  • %(season) : Is the number of the season
  • %(episode) : Is the number of the episode
  • %(episode_name) : Is the name of the episode

NOTE: You don't need to add .mp4 at the end

Docker

You can run the script in a docker container, to build the image just run

docker build -t streaming-community-api .

and to run it use

docker run -it -p 8000:8000 streaming-community-api

By default the videos will be saved in /app/Video inside the container, if you want to to save them in your machine instead of the container just run

docker run -it -p 8000:8000 -v /path/to/download:/app/Video streaming-community-api

Tutorial

For a detailed walkthrough, refer to the video tutorial