GithubHelp home page GithubHelp logo

costaht / plex-preroll-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewholmes060/plex-preroll-builder

0.0 1.0 0.0 228.4 MB

just a simple python script to build a recently added preroll for your plex server

Home Page: https://www.reddit.com/r/PlexPrerolls/comments/gggbzb/i_made_a_python_script_to_generate_a_preroll/?utm_source=share&utm_medium=web2x

Python 98.35% Dockerfile 1.65%

plex-preroll-builder's Introduction

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.6

pip

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

image

image

  1. Install ffmpeg
sudo apt-get install ffmpeg -y

https://www.ffmpeg.org/download.html

  1. Install the python 4 packages

( server headless )

sudo pip3 install \
          opencv-contrib-python-headless \
          git+https://github.com/pytube/pytube
          ffmpeg-python \
          plexapi \
          python-dotenv \
          flask \

( standard desktop environments )

sudo pip3 install \
          opencv-python
          git+https://github.com/pytube/pytube
          ffmpeg-python \
          plexapi \
          python-dotenv \
          flask \
  1. download the project

Download and put the folder where you want the prerolls to be generated.

  1. configure preroll.py to your plex server

change the below fields to the details of your plex server

baseurl = 'Input Your Plex URL'
token = 'Input Your Plex Token'
folder = "Input the directory that this is going to sit in"
  1. 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

image

plex-preroll-builder's People

Contributors

andrewholmes060 avatar duffpop avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.