Skip to content

Repository files navigation

Mini Movie Server v0.1

Description:

This is a python script that creates an HTML file based on the Movies/Movie folders within the same directory. This utilizes bootstrap as its frontend.

Prerequisite:

  • Installed python 2.x or 3.x

  • Install libraries from the requirements.txt file:

        $ pip install -r requirements.txt
    
  • Installed Nginx on your local machine.

  • Checkout this repository in the Videos directory.

    Note: The directory of the folder/s must have the following hierarchy:

   
   Root directory
       |- miniserver/
           |- html_generator.py
           |- image_handler.py
           |- convert_srt_to_vtt.py
           |- css/
           |- vendor/
               |- bootstrap/
               |- jquery/
           |- requirements.txt
           |- README.md
       |- index.html (generated by html_generator)
       |- Movie folder 1
            |- Movie.1.file.mp4
            |- Subtitle.1.srt
            |- medium-cover.jpg
        |- Movie folder 2
            |- Movie.2.file.mp4
            |- Subtitle.2.srt
            |- medium-cover.jpg
       ...
       ...
       ...     

Generating the index.html file:

  • Run the following command from the terminal:
    $ python html_generator.py

About

Setting up your own local Movie server using Nginx and a python script.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages