GithubHelp home page GithubHelp logo

vuokkovuorinnen / theatertrailers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from electronickss/theatertrailers

0.0 2.0 0.0 610 KB

Watch the same trailers as the movie theater plays before their movies

License: GNU General Public License v3.0

Python 100.00%

theatertrailers's Introduction

TheaterTrailers

Build status Build Status Gitter chat

This is a python script that automates the downloading of trailers from youtube using youtube-dl. Trailers are downloaded if their release date hasn't arrived yet and are deleted when it does. Files and folders are named with the standard Plex and The Movie DB naming convention, a "Coming Soon" image is copied in as poster.jpg and two versions of the trailer are stored. One is stored with -trailer in the name so Plex recognizes it as the trailer and the other is recognized as the movie.


Why?

This application adds to the movie theater feel of your plex setup, by adding unreleased movie's trailers to your library. The idea is to add a more cinematic feal.


Screenshot

Plex Web View


Installation

From withing your OS

  1. Install Python. This module supports 2.7.x. 3.x support can be spotty. Raise a github issue if you spot a compatibility error
    • Python for Windows can be found here
  2. Install PIP if it isn't already present
  3. Install youtube_dl
    • pip install --upgrade youtube_dl
  4. Install tmdbsimple
    • pip install tmdbsimple
  5. Sign up at Movie DB for an account and get a personal api key
    • A walk through can be found here
  6. (Optional) Get your Plex token off of Plex Web
  7. Clone this repository or download it where you want it
    • git clone suggested
  8. Edit the config file to include your api keys. Remove example from the trailers.conf file title. Adjust other settings as necessary
  9. This script can be ran manually like any other script or configured with Cron/Windows Task Scheduler.
    • Cron examples can be found here

From within Plex

  1. Add a folder inside of the Movie librarie that you want trailers, to /directoryTo/TheaterTrailers/Trailers/ or C:\directoryTo\TheaterTrailers\Trailers

    • Note that trailers in different libraries are not shared
  2. Enable trailers on your server

    • Check the option in Settings > Server > Extras > Include Cinema Trailers from movies in my library
  3. Enable trailers on your client

    • Plex Web: Set the number of trailers in Settings > Web > Player > Cinema Trailers to Play Before Movies
  4. (Optional) TheaterTrailers copies over a "Coming Soon" poster so that users know it's a trailer. For that to be set to default, local media assets needs to be set as priority within your agents. Go to Settings > Server > Agents then adjust within each agent


Feature Requests

Vote on new features here!


Credit

Thank you to the youtube-dl team

This product uses the TMDb API but is not endorsed or certified by TMDb


theatertrailers's People

Contributors

electronickss avatar

Watchers

Vuokko Vuorinnen avatar 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.