Skip to content

Download subtitles for movies and shows in your preferred language.

License

Notifications You must be signed in to change notification settings

eraychumak/Subtitles

 
 

Repository files navigation

Subtitles

https://subtitles.pw/

Download subtitles for movies and shows in your preferred language.

Local setup

Prerequisites

Your system should have these installed before you continue with the local setup:

  • Python 3.8.x
  • NodeJS 14.x.x

Installation

Ignore step 5 for now even if Django tells you to do so as this could pose errors in the future since we don't currently need or have a database.

  1. Install pipenv: pip install pipenv.
  2. Install python dependencies by running pipenv install, which also creates a virtual env.
  3. Install node dependencies by running yarn.
  4. Create the .env file and fill it in using the variables listed below.
  5. Run pipenv shell to activate a sub shell for the virtual environment created.
  6. Run python manage.py migrate if there are changes made to the database.

Environment Variables

Keep the the SETTING variable as it is.

TMDB_KEY=
SECRET_KEY=
SETTING=subtitles.settings.dev

Running

You can either run the production preview which hosted by Django or run the development server made by Vue with features such as hot reloading which is ideal when developing.

Production preview

  1. Build the frontend with yarn build.
  2. Run pipenv shell to activate the virtual environment.
  3. Run python manage.py runserver to start the server.

Development server

You'd need to run two shell instances here, one for the Vue frontend and one for the Django backend which provides the API endpoints.

  1. Run pipenv shell to activate the virtual environment.
  2. Run python manage.py runserver to start the Django backend.
  3. Run yarn serve to start the Vue frontend.

About

Download subtitles for movies and shows in your preferred language.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 54.0%
  • Python 33.7%
  • TypeScript 6.3%
  • JavaScript 4.0%
  • HTML 2.0%