Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Akasiek/Random-Plex-Movie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Plex Movie

Python App which chooses a random movie from your Plex Library. Also you can send a watch request to Plex Client with the chosen movie. GitHub Release GitHub PyPI PyPI

alt text

Needed stuff

  • Python 3
  • Pip
  • Google Chrome (You can access the app by any other browser on localhost:4000. But Chrome uses app module and it works out of the box)

Installation

  1. Clone repo with this command:
git clone https://github.com/Akasiek/Random-Plex-Movie.git
cd Random-Plex-Movie
  1. Install required libraries:

    Windows

    pip install -r requirements.txt

    MacOS and Linux

    pip3 install -r requirements.txt

  2. Change config file with your Plex credentials.

    alt text

  3. Run Python file with this command

    Windows (CMD)

    py randomPlexMovie.py

    MacOS and Linux

    python3 randomPlexMovie.py

    This will start local web server on port 4000 and open Chrome App. If the port is colliding with something, you can change it in this line:

    alt text

    After closing the app window, the program will stop running. You can change it by deleting argument "close_callback" in this line:

    alt text

    If you run into the OSError: Can't find Google Chrome/Chromium installation error, in the config file, change useCustomPath to True and specify the file path leading to your Chrome installation directory by changing path.

    alt text


Plans for the future

  • Login page for Plex credentials