Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AndrewHolmes060/Plex-Preroll-Builder
just a simple python script to build a recently added preroll for your plex server
https://github.com/AndrewHolmes060/Plex-Preroll-Builder
Last synced: 4 months ago
JSON representation
just a simple python script to build a recently added preroll for your plex server
- Host: GitHub
- URL: https://github.com/AndrewHolmes060/Plex-Preroll-Builder
- Owner: AndrewHolmes060
- Created: 2020-05-15T23:12:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T08:04:34.000Z (about 2 years ago)
- Last Synced: 2024-08-01T21:55:13.440Z (7 months ago)
- Language: Python
- Homepage: https://www.reddit.com/r/PlexPrerolls/comments/gggbzb/i_made_a_python_script_to_generate_a_preroll/?utm_source=share&utm_medium=web2x
- Size: 223 MB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Plex-Preroll-Builder
just a simple python script to build a recently added preroll for your plex server. piggybacking off far smarter people to automate a basic trailer builder based on the metadata of recently added movies.# Requirements:
Python 3.6pip
FFMPEG
PLEX-API
Pytube3
python-dotenv
flask
# Installation
1. Set up your plex to speak to prerolls
On the plex admin panel go to settings:
```
general -> turn on push notifications
webhooks -> Serverip/plexpreroll
```

2. Install ffmpeg
``` ( ubuntu / debian based )
sudo apt-get install ffmpeg -y
```https://www.ffmpeg.org/download.html
3. Install the python 4 packages
( server headless )
```python
sudo pip3 install \
opencv-contrib-python-headless \
git+https://github.com/pytube/pytube
ffmpeg-python \
plexapi \
python-dotenv \
flask \
```
( standard desktop environments )
```python
sudo pip3 install \
opencv-python
git+https://github.com/pytube/pytube
ffmpeg-python \
plexapi \
python-dotenv \
flask \```
4. download the project
Download and put the folder where you want the prerolls to be generated.
5. configure preroll.py to your plex server
change the below fields to the details of your plex server
```python
baseurl = 'Input Your Plex URL'
token = 'Input Your Plex Token'
folder = "Input the directory that this is going to sit in"
```6. run preroll.py
```
python3 preroll.py
```it will then begin listening to your server for new files to be added. this is shown when library.new gets sent to the script
