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.
- 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)
- Clone repo with this command:
git clone https://github.com/Akasiek/Random-Plex-Movie.git
cd Random-Plex-Movie
-
Install required libraries:
Windows
pip install -r requirements.txt
MacOS and Linux
pip3 install -r requirements.txt
-
Change config file with your Plex credentials.
-
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:
After closing the app window, the program will stop running. You can change it by deleting argument "close_callback" in this line:
If you run into the
OSError: Can't find Google Chrome/Chromium installation
error, in the config file, change useCustomPath toTrue
and specify the file path leading to your Chrome installation directory by changingpath
.
- Login page for Plex credentials