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.
-
Installed
python 2.x or 3.x -
Install libraries from the
requirements.txtfile:$ pip install -r requirements.txt -
Installed
Nginxon 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
...
...
...
- Run the following command from the terminal:
$ python html_generator.py